Build shared libs, games and examples on CI
Now with external OpenAL and GLFW dependencies removed, we don't have to worry about installing them in CI. Shared libraries are now always built along with static libs. Games and examples are built everwhere except for Visual Studio, because Physac needs pthreads, which VS doesn't provide.
This commit is contained in:
parent
2388cbc3cd
commit
263e81b5c9
2 changed files with 14 additions and 10 deletions
18
.travis.yml
18
.travis.yml
|
@ -7,26 +7,26 @@ git:
|
||||||
# TODO we could use a 32 bit Docker container for running true 32-bit tests
|
# TODO we could use a 32 bit Docker container for running true 32-bit tests
|
||||||
# services: - docker
|
# services: - docker
|
||||||
|
|
||||||
matrix: # We don't install x11 32-bit libraries, so skip shared libraries on -m32
|
matrix:
|
||||||
include:
|
include:
|
||||||
- os: linux
|
- os: linux
|
||||||
env: ARCH=i386 SHARED=OFF EXAMPLES=OFF
|
env: ARCH=i386
|
||||||
sudo: required
|
sudo: required
|
||||||
- os: linux
|
- os: linux
|
||||||
env: ARCH=amd64 SHARED=ON EXAMPLES=ON
|
env: ARCH=amd64
|
||||||
sudo: required
|
sudo: required
|
||||||
- os: osx
|
- os: osx
|
||||||
env: ARCH=amd64 SHARED=ON EXAMPLES=ON
|
env: ARCH=amd64
|
||||||
|
|
||||||
before_script:
|
before_script:
|
||||||
|
|
||||||
before_install:
|
before_install:
|
||||||
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then
|
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then
|
||||||
sudo apt-get install -y gcc-multilib
|
sudo apt-get install -y gcc-multilib
|
||||||
libasound2-dev
|
libasound2-dev:$ARCH
|
||||||
libxcursor-dev libxinerama-dev
|
libxcursor-dev:$ARCH libxinerama-dev:$ARCH mesa-common-dev:$ARCH
|
||||||
mesa-common-dev libx11-dev libxrandr-dev libxi-dev xorg-dev
|
libx11-dev:$ARCH libxrandr-dev:$ARCH libxi-dev:$ARCH
|
||||||
libgl1-mesa-dev libglu1-mesa-dev libglew-dev;
|
libgl1-mesa-dev:$ARCH libglu1-mesa-dev:$ARCH libglew-dev:$ARCH;
|
||||||
export RAYLIB_PACKAGE_SUFFIX="-Linux-$ARCH";
|
export RAYLIB_PACKAGE_SUFFIX="-Linux-$ARCH";
|
||||||
if [ "$ARCH" == "i386" ]; then export CFLAGS="-m32"; fi;
|
if [ "$ARCH" == "i386" ]; then export CFLAGS="-m32"; fi;
|
||||||
if [ "$ARCH" == "amd64" ]; then export CFLAGS="-m64"; fi;
|
if [ "$ARCH" == "amd64" ]; then export CFLAGS="-m64"; fi;
|
||||||
|
@ -37,7 +37,7 @@ before_install:
|
||||||
script:
|
script:
|
||||||
- mkdir build
|
- mkdir build
|
||||||
- cd build
|
- cd build
|
||||||
- cmake -DMACOS_FATLIB=ON -DSTATIC_RAYLIB=ON -DSHARED_RAYLIB=$SHARED -DBUILD_EXAMPLES=$EXAMPLES -DBUILD_GAMES=$EXAMPLES ..
|
- cmake -DMACOS_FATLIB=ON -DSTATIC_RAYLIB=ON -DSHARED_RAYLIB=ON -DBUILD_EXAMPLES=ON -DBUILD_GAMES=ON ..
|
||||||
- make VERBOSE=1
|
- make VERBOSE=1
|
||||||
- make package
|
- make package
|
||||||
|
|
||||||
|
|
|
@ -20,12 +20,16 @@ environment:
|
||||||
matrix:
|
matrix:
|
||||||
- compiler: mingw
|
- compiler: mingw
|
||||||
bits: 32
|
bits: 32
|
||||||
|
examples: ON
|
||||||
- compiler: mingw
|
- compiler: mingw
|
||||||
bits: 64
|
bits: 64
|
||||||
|
examples: ON
|
||||||
- compiler: msvc15
|
- compiler: msvc15
|
||||||
bits: 32
|
bits: 32
|
||||||
|
examples: OFF
|
||||||
- compiler: msvc15
|
- compiler: msvc15
|
||||||
bits: 64
|
bits: 64
|
||||||
|
examples: OFF
|
||||||
|
|
||||||
before_build:
|
before_build:
|
||||||
- if [%compiler%]==[mingw] set CFLAGS=-m%BITS% & set LDFLAGS=-m%BITS% & set GENERATOR="MinGW Makefiles"
|
- if [%compiler%]==[mingw] set CFLAGS=-m%BITS% & set LDFLAGS=-m%BITS% & set GENERATOR="MinGW Makefiles"
|
||||||
|
@ -35,7 +39,7 @@ before_build:
|
||||||
- cd build
|
- cd build
|
||||||
|
|
||||||
build_script:
|
build_script:
|
||||||
- cmake -G %GENERATOR% -DSTATIC_RAYLIB=ON -DSHARED_RAYLIB=OFF -DBUILD_EXAMPLES=OFF -DBUILD_GAMES=OFF ..
|
- cmake -G %GENERATOR% -DSTATIC_RAYLIB=ON -DSHARED_RAYLIB=ON -DBUILD_EXAMPLES=%examples% -DBUILD_GAMES=%examples% ..
|
||||||
- cmake --build . --target install
|
- cmake --build . --target install
|
||||||
|
|
||||||
after_build:
|
after_build:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue