.travis.yml 3.32 KB
Newer Older
1
dist: trusty
2
sudo: false
3
language: cpp
4 5
os:
 - linux
6 7 8 9 10 11 12 13 14 15

cache:
  - apt
  - ccache
  - directories:
    - contrib/

env:
  globale:
    - CCACHE_TEMPDIR=/tmp/.ccache-temp
16 17 18 19 20
addons:
   apt:
      sources:
         - ubuntu-toolchain-r-test
         - boost-latest
21
         - sourceline: 'ppa:beineri/opt-qt591-trusty'
22
      packages:
23
         - cmake
24 25
         - qt59base
         - qt59svg
26
         - cmake-data
27
         - g++-4.8
28
         - python-dev
29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46
         - libboost-chrono1.55-dev
         - libboost-date-time1.55-dev
         - libboost-filesystem1.55-dev
         - libboost-iostreams1.55-dev
         - libboost-math1.55-dev
         - libboost-python1.55-dev
         - libboost-regex1.55-dev
         - libboost-serialization1.55-dev
         - libboost-system1.55-dev
         - libboost-thread1.55-dev
         - libxerces-c3.1
         - libxerces-c-dev
         - libicu-dev
         - libsvm-dev
         - libsvm3
         - subversion
         - doxygen 
         - graphviz
47 48 49 50 51 52 53 54 55 56 57
         - libglpk36
         - libglpk-dev
         - coinor-cbc
         - coinor-libcgl1
         - coinor-libclp1
         - coinor-libcoinutils-dev
         - coinor-libcgl-dev
         - coinor-libcbc-dev
         - coinor-libclp-dev
         - coinor-libosi-dev
         - coinor-libvol-dev
58 59
         - libpcre3-dev
         
60
before_script:
61
  ./tools/travis/cibuild.before.sh
62
script:
63 64 65
  ./tools/travis/cibuild.sh

#second we exclude those that are redundant, don't make sense or take too long
66
matrix:
67 68 69 70
  include:
    - env: ENABLE_STYLE_TESTING=ON WITH_GUI=ON 
      os: linux
      compiler: gcc
71

72 73 74
## see for example https://github.com/taocpp/PEGTL/blob/master/.travis.yml
## gcc tests class and TOPP tests
    - env: ENABLE_STYLE_TESTING=OFF ENABLE_TOPP_TESTING=ON ENABLE_CLASS_TESTING=ON WITH_GUI=ON ADDRESS_SANITIZER=Off BUILD_TYPE=Release OPENMP=On
75
      os: linux
76
      compiler: gcc
77

78 79
## pyopenms test
    - env: ENABLE_STYLE_TESTING=OFF WITH_GUI=OFF ENABLE_TOPP_TESTING=OFF ENABLE_CLASS_TESTING=OFF ADDRESS_SANITIZER=Off BUILD_TYPE=Release PYOPENMS=ON PY_NO_OPTIMIZATION=ON OPENMP=Off
80 81 82
      os: linux
      compiler: clang

83 84 85 86 87 88 89 90 91 92 93 94 95 96
# ## clang tests class and TOPP tests: without gui and without address sanitizer (debug build)
#     - env: ENABLE_STYLE_TESTING=OFF WITH_GUI=OFF ENABLE_TOPP_TESTING=ON ENABLE_CLASS_TESTING=OFF ADDRESS_SANITIZER=Off BUILD_TYPE=Debug CXX_FLAGS="-Qunused-arguments" CFLAGS="-Qunused-arguments" CCACHE_CPP2=1 OPENMP=Off
#       os: linux
#       compiler: clang
# ## clang tests class and TOPP tests: without gui and without address sanitizer (debug build)
#     - env: ENABLE_STYLE_TESTING=OFF WITH_GUI=OFF ENABLE_TOPP_TESTING=OFF ENABLE_CLASS_TESTING=ON ADDRESS_SANITIZER=Off BUILD_TYPE=Debug CXX_FLAGS="-Qunused-arguments" CFLAGS="-Qunused-arguments" CCACHE_CPP2=1 OPENMP=Off
#       os: linux
#       compiler: clang
# 
# ## clang tests class and TOPP tests: without gui and without address sanitizer (release build)
#     - env: ENABLE_STYLE_TESTING=OFF WITH_GUI=ON ENABLE_TOPP_TESTING=ON ENABLE_CLASS_TESTING=ON ADDRESS_SANITIZER=Off BUILD_TYPE=Release CXX_FLAGS="-Qunused-arguments" CFLAGS="-Qunused-arguments" CCACHE_CPP2=1 OPENMP=Off
#       os: linux
#       compiler: clang
#
97 98 99 100 101
### OS X tests
#    - env: ENABLE_STYLE_TESTING=OFF WITH_GUI=OFF ENABLE_TOPP_TESTING=ON ENABLE_CLASS_TESTING=OFF ADDRESS_SANITIZER=Off BUILD_TYPE=Release
#      os: osx
#      compiler: clang
#