summaryrefslogtreecommitdiffstats
path: root/.travis.yml
blob: 5488c68a51cc511f65a15b026ec475a6c88fc530 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
language: cpp

matrix:
    include:
        - os: linux
          addons:
            apt:
              sources:
                - ubuntu-toolchain-r-test
              packages:
                - g++-6
          env: CXX_COMPILER=g++-6 BUILD_TYPE=Debug COVERAGE=ON
        - os: linux
          addons:
            apt:
              sources:
                - ubuntu-toolchain-r-test
              packages:
                - g++-6
          env: CXX_COMPILER=g++-6 BUILD_TYPE=Debug COVERAGE=OFF
        - os: linux
          addons:
            apt:
              sources:
                - ubuntu-toolchain-r-test
              packages:
                - g++-6
          env: CXX_COMPILER=g++-6 BUILD_TYPE=Release COVERAGE=OFF
        - os: linux
          addons:
            apt:
              sources:
                - ubuntu-toolchain-r-test
              packages:
                - g++-7
          env: CXX_COMPILER=g++-7 BUILD_TYPE=Release COVERAGE=OFF
        - os: linux
          addons:
            apt:
              sources:
                - ubuntu-toolchain-r-test
              packages:
                - g++-7
          env: CXX_COMPILER=g++-7 BUILD_TYPE=Debug COVERAGE=OFF
        - os: linux
          dist: xenial
          addons:
            apt:
              sources:
                - ubuntu-toolchain-r-test
              packages:
                - clang-5.0
                - g++-7
          env: CXX_COMPILER=clang++-5.0 BUILD_TYPE=Debug COVERAGE=OFF
        - os: linux
          dist: xenial
          addons:
            apt:
              sources:
                - ubuntu-toolchain-r-test
              packages:
                - clang-5.0
                - g++-7
          env: CXX_COMPILER=clang++-5.0 BUILD_TYPE=Release COVERAGE=OFF
        - os: osx
          osx_image: xcode8.3
          env: CXX_COMPILER=clang++ BUILD_TYPE=Debug COVERAGE=OFF
        - os: osx
          osx_image: xcode8.3
          env: CXX_COMPILER=clang++ BUILD_TYPE=Release COVERAGE=OFF

script:
  - mkdir build
  - cd build
  - >
    cmake -DCMAKE_BUILD_TYPE=${BUILD_TYPE}             \
          -Dfrozen.coverage=${COVERAGE}                \
          -DCMAKE_CXX_COMPILER=${CXX_COMPILER}         \
          -DCMAKE_VERBOSE_MAKEFILE=ON                  \
          -DCTEST_DROP_SITE_CDASH=TRUE                 \
          -DDROP_METHOD="http"                         \
          -DDROP_SITE="my.cdash.org"                   \
          -DDROP_LOCATION="/submit.php?project=frozen" \
          -DBUILDNAME="$(uname -s)-${CXX_COMPILER}-${BUILD_TYPE}" ..
  - ctest -VV -M Experimental -T Start \
    && ctest -VV -M Experimental -T Build \
    && ctest -VV -M Experimental -T Test
  - if [[ "$COVERAGE" = "ON" ]]; then ctest -VV -M Experimental -T Coverage; fi
  - ctest -VV -M Experimental -T Submit