blob: 7c3fd3480fb875c5a0ce00690fdd4770c35c6b37 [file] [log] [blame]
franchuti68823f75f52015-04-01 12:35:37 +02001language: cpp
2
3os:
4- linux
Wouter van Oortmerssen932b22f2015-05-27 16:57:21 -07005- osx
6
7compiler:
8 - gcc
9 #- clang
franchuti68823f75f52015-04-01 12:35:37 +020010
11env:
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
20before_install:
Muhammed Thanishbe503cb2015-09-10 09:51:35 +053021- 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
franchuti68823f75f52015-04-01 12:35:37 +020027
28script:
29- if [ "$BIICODE" == "false" ]; then cmake -DCMAKE_BUILD_TYPE=$BUILD_TYPE . && make && make test; fi
Muhammed Thanishbe503cb2015-09-10 09:51:35 +053030- if [ "$BIICODE" == "true" ] && [ "$TRAVIS_OS_NAME" == "linux" ]; then ./biicode/support/bii-travis.sh $BUILD_TYPE; fi