aboutsummaryrefslogtreecommitdiffstats
path: root/.travis.yml
diff options
context:
space:
mode:
authorlloyd <[email protected]>2015-05-11 11:40:36 +0000
committerlloyd <[email protected]>2015-05-11 11:40:36 +0000
commit2c8c47db450cbffa1122a2b9796b7a35588d02b7 (patch)
treeab8e4309785e3f473127b3bcba56257305d8836b /.travis.yml
parent9426f6d0f4a760c555379c3af642127df7e1456e (diff)
Add coveralls.io support based on GH #91 by cordney
Move the more complex CI logic to scripts instead of yaml
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml34
1 files changed, 18 insertions, 16 deletions
diff --git a/.travis.yml b/.travis.yml
index edfcc9a74..f8e0e06df 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,33 +1,35 @@
language: cpp
+os:
+ - linux
+
compiler:
- clang
- gcc
+env:
+ - BUILD_MODE="shared"
+ - BUILD_MODE="static"
+ - BUILD_MODE="coverage"
+
+matrix:
+ exclude:
+ - compiler: clang
+ env: BUILD_MODE="coverage"
+
before_install:
- sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
- sudo apt-get update -qq
install:
- - sudo apt-get install -y g++-4.8
- - sudo apt-get install -y libssl-dev
- - sudo apt-get install -y libz-dev
- - sudo apt-get install -y libsqlite3-dev
- - sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.8 90
- - sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.8 90
+ - sudo ./src/scripts/ci/setup.sh
script:
- - $CXX --version
- - python configure.py $BUILD_MODE --cc=$CC --cc-bin=$CXX --with-openssl --with-sqlite --with-zlib
- - "make"
- - "LD_LIBRARY_PATH=. ./botan-test"
+ - ./src/scripts/ci/build.sh
+
+after_success:
+ - ./src/scripts/ci/after_success.sh
notifications:
-os:
- - linux
-
-env:
- - BUILD_MODE=""
- - BUILD_MODE="--via-amalgamation --disable-shared"