2017-02-20 22:43:09 +00:00
|
|
|
# thanks to http://stackoverflow.com/questions/29312015/building-with-more-than-one-version-of-a-compiler for the template
|
|
|
|
|
|
|
|
language: cpp
|
|
|
|
dist: trusty
|
2017-02-21 17:34:07 +00:00
|
|
|
sudo: required # not actually required, but the virtualization builds are more stable and have better single core performance. If in doubt, remove.
|
2017-02-21 11:58:56 +00:00
|
|
|
|
2017-02-20 22:43:09 +00:00
|
|
|
matrix:
|
|
|
|
include:
|
|
|
|
- os: linux
|
|
|
|
compiler: gcc
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
sources: ['ubuntu-toolchain-r-test']
|
2017-02-21 11:58:56 +00:00
|
|
|
packages: ['g++-4.9', 'build-essential', 'cmake', 'libfreetype6-dev', 'libgl1-mesa-dev', 'libglew-dev', 'libgtk-3-dev', 'libjpeg-dev', 'libpng-dev', 'libsdl2-dev', 'libupnp-dev', 'libxrandr-dev', 'x11proto-core-dev', 'zlib1g-dev', 'libalut0', 'libgtest-dev']
|
|
|
|
env:
|
|
|
|
- CCOMPILER=gcc-4.9
|
|
|
|
- CXXCOMPILER=g++-4.9
|
|
|
|
- TYPE=Debug # somehow, the linking fails for release builds. If someone could fix that, that would be great.
|
|
|
|
- BSYS="Unix Makefiles#make -k"
|
2017-02-20 22:43:09 +00:00
|
|
|
|
|
|
|
- os: linux
|
|
|
|
compiler: gcc
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
sources: ['ubuntu-toolchain-r-test']
|
2017-02-21 11:58:56 +00:00
|
|
|
packages: ['g++-5', 'build-essential', 'cmake', 'libfreetype6-dev', 'libgl1-mesa-dev', 'libglew-dev', 'libgtk-3-dev', 'libjpeg-dev', 'libpng-dev', 'libsdl2-dev', 'libupnp-dev', 'libxrandr-dev', 'x11proto-core-dev', 'zlib1g-dev', 'libalut0', 'ninja-build', 'libgtest-dev']
|
|
|
|
env:
|
|
|
|
- CCOMPILER=gcc-5
|
|
|
|
- CXXCOMPILER=g++-5
|
|
|
|
- TYPE=Debug
|
|
|
|
- CXX_FLAGS="-fdiagnostics-color"
|
|
|
|
- BSYS="Ninja#ninja -k30" PCH=on
|
2017-02-20 22:43:09 +00:00
|
|
|
|
|
|
|
- os: linux
|
|
|
|
compiler: clang
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
sources: ['ubuntu-toolchain-r-test', 'llvm-toolchain-precise-3.8']
|
2017-02-21 11:58:56 +00:00
|
|
|
packages: ['clang-3.8', 'build-essential', 'cmake', 'libfreetype6-dev', 'libgl1-mesa-dev', 'libglew-dev', 'libgtk-3-dev', 'libjpeg-dev', 'libpng-dev', 'libsdl2-dev', 'libupnp-dev', 'libxrandr-dev', 'x11proto-core-dev', 'zlib1g-dev', 'libalut0', 'ninja-build', 'libc++-dev', 'libc++1', 'libgtest-dev']
|
|
|
|
env:
|
|
|
|
- CCOMPILER=clang-3.8
|
|
|
|
- CXXCOMPILER=clang++-3.8
|
|
|
|
- CXX_FLAGS="-stdlib=libc++ -fcolor-diagnostics"
|
|
|
|
- TYPE=Debug
|
|
|
|
- BSYS="Ninja#ninja -k30"
|
2017-02-20 22:43:09 +00:00
|
|
|
|
2017-02-21 11:58:56 +00:00
|
|
|
before_install:
|
|
|
|
- for t in test mock; do wget https://github.com/google/google$t/archive/release-1.7.0.tar.gz -Og$t.tgz && tar xvf g$t.tgz; done
|
2017-02-20 22:43:09 +00:00
|
|
|
|
|
|
|
before_script:
|
|
|
|
- export CXX="$CXXCOMPILER" CC="$CCOMPILER"
|
2017-02-21 11:58:56 +00:00
|
|
|
- >
|
|
|
|
cmake
|
|
|
|
-G"${BSYS/\#*/}"
|
|
|
|
-DCMAKE_BUILD_TYPE="$TYPE"
|
|
|
|
-DCMAKE_CXX_FLAGS="$CXX_FLAGS"
|
|
|
|
-DUSE_GCC_PCH=${PCH:-off}
|
|
|
|
-DGTEST_ROOT=$PWD/googletest-release-1.7.0
|
|
|
|
-DGMOCK_ROOT=$PWD/googlemock-release-1.7.0
|
|
|
|
.
|
2017-02-20 22:43:09 +00:00
|
|
|
|
|
|
|
script:
|
2017-02-21 18:25:21 +00:00
|
|
|
- ${BSYS/*#/} all netpuncher tests aul_test
|
2017-02-21 11:58:56 +00:00
|
|
|
- ./tests/tests
|
|
|
|
- ./tests/aul_test
|