2015-04-01 10:35:37 +00:00
|
|
|
language: cpp
|
|
|
|
|
|
|
|
os:
|
|
|
|
- linux
|
2015-05-27 23:57:21 +00:00
|
|
|
- osx
|
|
|
|
|
|
|
|
compiler:
|
|
|
|
- gcc
|
|
|
|
#- clang
|
2015-04-01 10:35:37 +00:00
|
|
|
|
|
|
|
env:
|
|
|
|
matrix:
|
|
|
|
- BUILD_TYPE=Debug BIICODE=false
|
|
|
|
- BUILD_TYPE=Release BIICODE=false
|
2016-02-22 19:33:14 +00:00
|
|
|
# biicode .deb files no longer available.
|
|
|
|
# - BUILD_TYPE=Release BIICODE=true
|
|
|
|
# - BUILD_TYPE=Debug BIICODE=true
|
2015-04-01 10:35:37 +00:00
|
|
|
global:
|
|
|
|
- GCC_VERSION="4.9"
|
|
|
|
|
|
|
|
before_install:
|
2015-09-10 04:21:35 +00:00
|
|
|
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test; fi
|
|
|
|
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo apt-get update -qq; fi
|
|
|
|
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo apt-get install -qq g++-$GCC_VERSION; fi
|
|
|
|
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo apt-get install -qq gcc-$GCC_VERSION; fi
|
|
|
|
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo ln -s -v -f $(which g++-$GCC_VERSION) /usr/bin/g++; fi
|
|
|
|
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo ln -s -v -f $(which gcc-$GCC_VERSION) /usr/bin/gcc; fi
|
2015-04-01 10:35:37 +00:00
|
|
|
|
|
|
|
script:
|
|
|
|
- if [ "$BIICODE" == "false" ]; then cmake -DCMAKE_BUILD_TYPE=$BUILD_TYPE . && make && make test; fi
|
2015-09-10 04:21:35 +00:00
|
|
|
- if [ "$BIICODE" == "true" ] && [ "$TRAVIS_OS_NAME" == "linux" ]; then ./biicode/support/bii-travis.sh $BUILD_TYPE; fi
|