diff options
author | Huu Nguyen <whoshuu@gmail.com> | 2015-09-04 19:40:15 -0400 |
---|---|---|
committer | Huu Nguyen <whoshuu@gmail.com> | 2015-09-04 21:18:38 -0400 |
commit | 3b339c10e228a965e567ae5c57da840b1b0578ac (patch) | |
tree | 15239e281f094d9d1bc569d12537a6b62767893c /.travis.yml | |
parent | e335618ba29436c26f0cfca670ee063b9c871538 (diff) | |
download | crow-3b339c10e228a965e567ae5c57da840b1b0578ac.tar.gz crow-3b339c10e228a965e567ae5c57da840b1b0578ac.zip |
Use the new travis container architecture
Closes #84
Diffstat (limited to '.travis.yml')
-rw-r--r-- | .travis.yml | 32 |
1 files changed, 21 insertions, 11 deletions
diff --git a/.travis.yml b/.travis.yml index a547957..cec0186 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,24 +1,34 @@ language: cpp +sudo: false + notifications: irc: "chat.freenode.net##crow" compiler: - gcc - #- clang + +env: + matrix: + - COMPILER=g++-4.8 CCOMPILER=gcc-4.8 PUSH_COVERAGE=ON + +addons: + apt: + sources: + - ubuntu-toolchain-r-test + - boost-latest + packages: + - g++-4.8 + - libboost1.55-all-dev + - python-pip + +install: + - if [ "$PUSH_COVERAGE" == "ON" ]; then pip install --user git+git://github.com/eddyxu/cpp-coveralls.git; fi before_script: - - sudo pip install cpp-coveralls - - sudo add-apt-repository -y ppa:kalakris/cmake - - sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test - - sudo add-apt-repository -y ppa:boost-latest/ppa - - sudo apt-get -qq update - - sudo apt-get install -qq libboost1.55-all-dev - - sudo apt-get install -qq g++-4.8 - - if [ "$CXX" = "g++" ]; then export CXX="g++-4.8" CC="gcc-4.8"; fi + - export CXX=$COMPILER CC=$CCOMPILER - mkdir build - cd build - - sudo apt-get install cmake - cmake --version - cmake .. @@ -26,4 +36,4 @@ script: make && ctest after_success: - cd .. - - coveralls --gcov gcov-4.8 -i include --gcov-options '\-lp' + - if [ "PUSH_COVERAGE" == "ON" ]; then coveralls --gcov gcov-4.8 -i include --gcov-options '\-lp'; fi |