• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1language: cpp
2
3os:
4- linux
5- osx
6
7compiler:
8  - gcc
9  #- clang
10
11env:
12  matrix:
13    - BUILD_TYPE=Debug BIICODE=false
14    - BUILD_TYPE=Release BIICODE=false
15    # biicode .deb files no longer available.
16    # - BUILD_TYPE=Release BIICODE=true
17    # - BUILD_TYPE=Debug BIICODE=true
18  global:
19    - GCC_VERSION="4.9"
20
21before_install:
22- if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test; fi
23- if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo apt-get update -qq; fi
24- if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo apt-get install -qq g++-$GCC_VERSION; fi
25- if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo apt-get install -qq gcc-$GCC_VERSION; fi
26- if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo ln -s -v -f $(which g++-$GCC_VERSION) /usr/bin/g++; fi
27- if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo ln -s -v -f $(which gcc-$GCC_VERSION) /usr/bin/gcc; fi
28
29script:
30- if [ "$BIICODE" == "false" ]; then cmake -DCMAKE_BUILD_TYPE=$BUILD_TYPE . && make && make test; fi
31- if [ "$BIICODE" == "true" ] && [ "$TRAVIS_OS_NAME" == "linux" ]; then ./biicode/support/bii-travis.sh $BUILD_TYPE; fi
32