2017-10-05 07:18:25 +03:00
|
|
|
language: c
|
|
|
|
dist: trusty
|
|
|
|
|
|
|
|
git:
|
|
|
|
depth: 3
|
|
|
|
|
2017-11-27 03:24:08 +03:00
|
|
|
# TODO we could use a 32 bit Docker container for running true 32-bit tests
|
|
|
|
# services: - docker
|
2017-10-05 07:18:25 +03:00
|
|
|
|
2017-12-14 14:20:05 +03:00
|
|
|
matrix:
|
2017-11-27 03:24:08 +03:00
|
|
|
include:
|
|
|
|
- os: linux
|
2017-12-14 14:20:05 +03:00
|
|
|
env: ARCH=i386
|
2017-11-27 03:24:08 +03:00
|
|
|
sudo: required
|
|
|
|
- os: linux
|
2017-12-14 14:20:05 +03:00
|
|
|
env: ARCH=amd64
|
2017-11-27 03:24:08 +03:00
|
|
|
sudo: required
|
|
|
|
- os: osx
|
2017-12-14 14:20:05 +03:00
|
|
|
env: ARCH=amd64
|
2017-11-24 21:57:44 +03:00
|
|
|
|
2017-10-05 07:18:25 +03:00
|
|
|
before_script:
|
|
|
|
|
|
|
|
before_install:
|
|
|
|
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then
|
|
|
|
sudo apt-get install -y gcc-multilib
|
2017-12-14 14:20:05 +03:00
|
|
|
libasound2-dev:$ARCH
|
|
|
|
libxcursor-dev:$ARCH libxinerama-dev:$ARCH mesa-common-dev:$ARCH
|
|
|
|
libx11-dev:$ARCH libxrandr-dev:$ARCH libxi-dev:$ARCH
|
|
|
|
libgl1-mesa-dev:$ARCH libglu1-mesa-dev:$ARCH libglew-dev:$ARCH;
|
2017-11-24 21:57:44 +03:00
|
|
|
export RAYLIB_PACKAGE_SUFFIX="-Linux-$ARCH";
|
2017-11-27 03:24:08 +03:00
|
|
|
if [ "$ARCH" == "i386" ]; then export CFLAGS="-m32"; fi;
|
|
|
|
if [ "$ARCH" == "amd64" ]; then export CFLAGS="-m64"; fi;
|
2017-10-05 07:18:25 +03:00
|
|
|
fi
|
2017-11-24 21:57:44 +03:00
|
|
|
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then export RAYLIB_PACKAGE_SUFFIX="-macOS"; fi
|
2017-10-05 07:18:25 +03:00
|
|
|
- "$CC --version"
|
|
|
|
|
|
|
|
script:
|
|
|
|
- mkdir build
|
|
|
|
- cd build
|
2017-12-14 14:20:05 +03:00
|
|
|
- cmake -DMACOS_FATLIB=ON -DSTATIC_RAYLIB=ON -DSHARED_RAYLIB=ON -DBUILD_EXAMPLES=ON -DBUILD_GAMES=ON ..
|
2017-11-27 03:24:08 +03:00
|
|
|
- make VERBOSE=1
|
2017-11-24 21:57:44 +03:00
|
|
|
- make package
|
|
|
|
|
|
|
|
deploy:
|
|
|
|
provider: releases
|
|
|
|
api_key:
|
|
|
|
secure: LvqUIAN/3dJul+Ra2iK3tSaNG5IwsNMmGIwVMy0DK5IBCxiQPBc9pWGiE30RTBPt6Z+N4BhMEE8DtUl+vnISlMoHWNIIhF2zwC66hs/F7zY7qEITMRSmfiLcqxQysknFOnJB06CATgXcFqlEo9j+t4abrG/f3qcb92J4O2uNz336Au2myTx93Q5MxbyA7KiUuEutFnb2dWiPCY4d+sGeXEfsiD2R7aj/8MaWOkoGdZVrTkI9juMgvpImkjQBArvqdjUMeT3MsRrwgOIq5v2GFV9dOl8k1WzPeT8B2JHh00ed/o1/wuFq/cLLOxtYo2+Pv3+xatOrlexoX0WkDm7C9/L1W5U4rLexU3CQ9mMBmHPnp6k/WXZ5QXEE4uUF0+LpN3XlIXzFpdZmZiVV8VLxg2WvyncMmivYiu7/MTkyfZxyKkzwl7sZZslzHA9kOGedGaN7b7/2B77OFHoQK8lKfdFml7jJnarh+89nenNZYMab0E8qkOJOyb2bYlDTa0/2nyxGiyymYgq6YHLNrDbhqB/1LzdgzjMliQ8ri5q9Ux2vjfcqOzhfAmcwFwnY/D6yXJWYi0DWpHZdpKl3du6dYDrypW91/yDWbwiJ/YhrE7ZunzrcB6GH/QkbuzWxdCth39rQAHih8DG01co/K3Gvi4yGjvIH5tFUpyEolMnpMiA=
|
|
|
|
file_glob: true
|
|
|
|
file: raylib-*.tar.gz
|
|
|
|
skip_cleanup: true
|
|
|
|
on:
|
|
|
|
repo: raysan5/raylib
|
2017-11-25 00:46:23 +03:00
|
|
|
branch: develop
|
2017-11-25 01:03:02 +03:00
|
|
|
tags: true
|