-
Notifications
You must be signed in to change notification settings - Fork 3
/
.travis.yml
31 lines (31 loc) · 995 Bytes
/
.travis.yml
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
language: c
sudo: false
env:
- PROD=1 TEST_VERBOSE=1
- PROD=1 TEST_VERBOSE=1 COVERAGE=1
compiler:
- gcc
- clang
before_install:
- mkdir build
- git clone https://github.com/CBL-ORION/ITK-builds.git external/ITK
# path for CMake to search for built ITK
- export ITK_DIR="`( cd external/ITK/usr/local/lib/cmake/ITK-4.9 && pwd )`"
- if [ "$COVERAGE" = 1 ]; then pip install --user cpp-coveralls; fi
script:
# version of gcc on Travis-CI does not support ASAN flag
- if [ "$CC" = "clang" ]; then export CXX="clang++"; fi
- if [ "$CC" = "gcc" ]; then export BUILD_ENABLE_ASAN=0; else export BUILD_ENABLE_ASAN=1; fi
- if [ "$COVERAGE" = 1 ]; then export BUILD_GCOV=1; fi
- make dep.test-data dep.external
- make && make test
after_success:
- if [ "$COVERAGE" = 1 ]; then coveralls -b . -i lib -e lib/t --gcov-options '\-lp'; fi
matrix:
exclude:
- compiler: clang
env: PROD=1 TEST_VERBOSE=1 COVERAGE=1
branches:
except:
- /^wip\//
- /^blocked/