franchuti688 | 23f75f5 | 2015-04-01 12:35:37 +0200 | [diff] [blame] | 1 | language: cpp |
| 2 | |
| 3 | os: |
| 4 | - linux |
Wouter van Oortmerssen | 932b22f | 2015-05-27 16:57:21 -0700 | [diff] [blame] | 5 | - osx |
| 6 | |
| 7 | compiler: |
| 8 | - gcc |
| 9 | #- clang |
franchuti688 | 23f75f5 | 2015-04-01 12:35:37 +0200 | [diff] [blame] | 10 | |
| 11 | env: |
| 12 | matrix: |
| 13 | - BUILD_TYPE=Debug BIICODE=false |
| 14 | - BUILD_TYPE=Release BIICODE=false |
| 15 | - BUILD_TYPE=Release BIICODE=true |
| 16 | - BUILD_TYPE=Debug BIICODE=true |
| 17 | global: |
| 18 | - GCC_VERSION="4.9" |
| 19 | |
| 20 | before_install: |
Muhammed Thanish | be503cb | 2015-09-10 09:51:35 +0530 | [diff] [blame] | 21 | - if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test; fi |
| 22 | - if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo apt-get update -qq; fi |
| 23 | - if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo apt-get install -qq g++-$GCC_VERSION; fi |
| 24 | - if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo apt-get install -qq gcc-$GCC_VERSION; fi |
| 25 | - if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo ln -s -v -f $(which g++-$GCC_VERSION) /usr/bin/g++; fi |
| 26 | - if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo ln -s -v -f $(which gcc-$GCC_VERSION) /usr/bin/gcc; fi |
franchuti688 | 23f75f5 | 2015-04-01 12:35:37 +0200 | [diff] [blame] | 27 | |
| 28 | script: |
| 29 | - if [ "$BIICODE" == "false" ]; then cmake -DCMAKE_BUILD_TYPE=$BUILD_TYPE . && make && make test; fi |
Muhammed Thanish | be503cb | 2015-09-10 09:51:35 +0530 | [diff] [blame] | 30 | - if [ "$BIICODE" == "true" ] && [ "$TRAVIS_OS_NAME" == "linux" ]; then ./biicode/support/bii-travis.sh $BUILD_TYPE; fi |