94 lines
1.8 KiB
YAML
94 lines
1.8 KiB
YAML
sudo: false
|
|
language: cpp
|
|
|
|
git:
|
|
depth: 25
|
|
|
|
matrix:
|
|
include:
|
|
- os: linux
|
|
compiler: g++-4.9
|
|
env: COMPILER=g++-4.9
|
|
cache:
|
|
directories:
|
|
- $HOME/SFML_LINUX
|
|
|
|
- os: linux
|
|
compiler: g++-6
|
|
env: COMPILER=g++-6
|
|
cache:
|
|
directories:
|
|
- $HOME/SFML-2.4.0_LINUX
|
|
|
|
- os: osx
|
|
cache:
|
|
directories:
|
|
- $HOME/SFML_OSX
|
|
|
|
addons:
|
|
apt:
|
|
sources:
|
|
- ubuntu-toolchain-r-test
|
|
- george-edison55-precise-backports
|
|
packages:
|
|
- g++-4.9
|
|
- g++-6
|
|
- libfreetype6-dev
|
|
- libjpeg-dev
|
|
- libx11-dev
|
|
- libxrandr-dev
|
|
- libxcb1-dev
|
|
- libx11-xcb-dev
|
|
- libxcb-randr0-dev
|
|
- libxcb-image0-dev
|
|
- libgl1-mesa-dev
|
|
- libflac-dev
|
|
- libogg-dev
|
|
- libvorbis-dev
|
|
- libvorbisenc2
|
|
- libvorbisfile3
|
|
- libopenal-dev
|
|
- libpthread-stubs0-dev
|
|
- libglew-dev
|
|
- libgpgme11-dev
|
|
- libsndfile1-dev
|
|
- libudev-dev
|
|
- cmake
|
|
- cmake-data
|
|
|
|
script:
|
|
- >
|
|
CXX=$COMPILER;
|
|
if [[ $TRAVIS_OS_NAME == 'linux' ]]; then
|
|
if [[ $CXX == g++-4.9 ]]; then
|
|
chmod +x tests/travis_linux.sh
|
|
tests/travis_linux.sh
|
|
elif [[ $CXX == g++-6 ]]; then
|
|
chmod +x tests/travis_linux_tests.sh
|
|
tests/travis_linux_tests.sh
|
|
else
|
|
echo 'Invalid compiler'
|
|
exit 1
|
|
fi
|
|
elif [[ $TRAVIS_OS_NAME == 'osx' ]]; then
|
|
chmod +x tests/travis_osx.sh
|
|
tests/travis_osx.sh
|
|
else
|
|
echo 'Invalid OS'
|
|
exit 1
|
|
fi
|
|
|
|
after_success:
|
|
- >
|
|
if [[ $TRAVIS_OS_NAME == 'linux' && $CXX == g++-6 ]]; then
|
|
bash <(curl -s https://codecov.io/bash) -x gcov-6 -a "-s /home/travis/build/texus/TGUI -pr"
|
|
fi
|
|
|
|
notifications:
|
|
webhooks:
|
|
urls:
|
|
- https://webhooks.gitter.im/e/66857e210e9200bcb6b7
|
|
on_success: change
|
|
on_failure: always
|
|
on_start: never
|