-
Notifications
You must be signed in to change notification settings - Fork 25
/
.travis.yml
155 lines (151 loc) · 6.22 KB
/
.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
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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
#Ubuntu bionic 18.04
#Ubuntu xenial 16.04 default
#Ubuntu trusty 14.04
#Ubuntu precise 12.04
dist: bionic
language: cpp # sets both CXX and CC envirionmental variables
# Use the faster container-based infrastructure.
#sudo: false
# https://github.com/travis-ci/travis-ci/issues/9033
sudo: true
env:
global:
- PROJECT_NAME=NIFTI_CLIB
addons:
apt:
packages:
- cmake
- valgrind
- help2man
homebrew:
packages:
- cmake
- sed
- help2man
# no poppler, openjpeg, uuid, json
# no swig
matrix:
fast_finish: true
include:
- compiler: gcc
os: linux
env:
- BLDPREFIX=coverage
- PARALLEL_LEVEL=3
- AGENT_BUILDDIRECTORY=${TRAVIS_BUILD_DIR}/NIFTIworkspace
- BUILD_SOURCESDIRECTORY=${TRAVIS_BUILD_DIR}
- SYSTEM_PULLREQUEST_SOURCEBRANCH=${TRAVIS_PULL_REQUEST_BRANCH}
- BUILD_SOURCEBRANCHNAME=${TRAVIS_PULL_REQUEST_BRANCH}
- BUILD_BUILDID=${TRAVIS_BUILD_ID}
- SYSTEM_PULLREQUEST_PULLREQUESTNUMBER=${TRAVIS_PULL_REQUEST}
- CTEST_SCRIPT_DIRECTORY=${TRAVIS_BUILD_DIR}/cmake
- CXXFLAGS="-g -O0 -Wall -Wextra -m64 -W -Wshadow -Wunused-variable -Wunused-parameter -Wunused-function -Wunused -Wno-system-headers -Wno-deprecated -Woverloaded-virtual -Wwrite-strings -fprofile-arcs -ftest-coverage"
- CFLAGS="-g -O0 -Wall -Wextra -m64 -W -Wshadow -Wunused-variable -Wunused-parameter -Wunused-function -Wunused -Wno-system-headers -Wno-deprecated -Wwrite-strings -fprofile-arcs -ftest-coverage"
- LDFLAGS="-fprofile-arcs -ftest-coverage -lgcov"
- INTERPROCEDURAL_OPTIMIZATION="ON"
- B_NAME=system_gcc
- WITH_COVERAGE="ON"
- WITH_MEMCHECK="OFF"
- NIFTI_SHELL_SCRIPT_TESTS="ON"
- SCANBUILD_EXE=""
- compiler: gcc
os: linux
env:
- BLDPREFIX=valgrind
- PARALLEL_LEVEL=3
- AGENT_BUILDDIRECTORY=${TRAVIS_BUILD_DIR}/NIFTIworkspace
- BUILD_SOURCESDIRECTORY=${TRAVIS_BUILD_DIR}
- SYSTEM_PULLREQUEST_SOURCEBRANCH=${TRAVIS_PULL_REQUEST_BRANCH}
- BUILD_SOURCEBRANCHNAME=${TRAVIS_PULL_REQUEST_BRANCH}
- BUILD_BUILDID=${TRAVIS_BUILD_ID}
- SYSTEM_PULLREQUEST_PULLREQUESTNUMBER=${TRAVIS_PULL_REQUEST}
- CTEST_SCRIPT_DIRECTORY=${TRAVIS_BUILD_DIR}/cmake
- CXXFLAGS="-g -O0 -Wall -Wextra -m64 -W -Wshadow -Wunused-variable -Wunused-parameter -Wunused-function -Wunused -Wno-system-headers -Wno-deprecated -Woverloaded-virtual -Wwrite-strings"
- CFLAGS="-g -O0 -Wall -Wextra -m64 -W -Wshadow -Wunused-variable -Wunused-parameter -Wunused-function -Wunused -Wno-system-headers -Wno-deprecated -Wwrite-strings"
- LDFLAGS=""
- INTERPROCEDURAL_OPTIMIZATION="OFF"
- B_NAME=system_gcc-valgrind
- WITH_COVERAGE="OFF"
- WITH_MEMCHECK="ON"
- NIFTI_SHELL_SCRIPT_TESTS="OFF"
- SCANBUILD_EXE=""
- compiler: gcc
os: linux
env:
- BLDPREFIX=use_prefix
- PARALLEL_LEVEL=3
- AGENT_BUILDDIRECTORY=${TRAVIS_BUILD_DIR}/NIFTIworkspace
- BUILD_SOURCESDIRECTORY=${TRAVIS_BUILD_DIR}
- SYSTEM_PULLREQUEST_SOURCEBRANCH=${TRAVIS_PULL_REQUEST_BRANCH}
- BUILD_SOURCEBRANCHNAME=${TRAVIS_PULL_REQUEST_BRANCH}
- BUILD_BUILDID=${TRAVIS_BUILD_ID}
- SYSTEM_PULLREQUEST_PULLREQUESTNUMBER=${TRAVIS_PULL_REQUEST}
- CTEST_SCRIPT_DIRECTORY=${TRAVIS_BUILD_DIR}/cmake
- INTERPROCEDURAL_OPTIMIZATION="ON"
- B_NAME=system_gcc
- WITH_MEMCHECK="OFF"
- NIFTI_PACKAGE_PREFIX=test_
- SCANBUILD_EXE=""
- compiler: clang
os: linux
env:
- BLDPREFIX=sanitize
- PARALLEL_LEVEL=3
- AGENT_BUILDDIRECTORY=${TRAVIS_BUILD_DIR}/NIFTIworkspace
- BUILD_SOURCESDIRECTORY=${TRAVIS_BUILD_DIR}
- SYSTEM_PULLREQUEST_SOURCEBRANCH=${TRAVIS_PULL_REQUEST_BRANCH}
- BUILD_SOURCEBRANCHNAME=${TRAVIS_PULL_REQUEST_BRANCH}
- BUILD_BUILDID=${TRAVIS_BUILD_ID}
- SYSTEM_PULLREQUEST_PULLREQUESTNUMBER=${TRAVIS_PULL_REQUEST}
- CTEST_SCRIPT_DIRECTORY=${TRAVIS_BUILD_DIR}/cmake
- ASAN_OPTIONS=verbosity=1
- CFLAGS="-Wall -Wextra -m64 -W -Wshadow -Wunused-variable -Wunused-parameter -Wunused-function -Wunused -Wno-system-headers -Wno-deprecated -Wwrite-strings -fsanitize=address,undefined"
- CXXFLAGS="-g -Wall -Wextra -m64 -fsanitize=address,undefined"
- INTERPROCEDURAL_OPTIMIZATION="OFF"
- B_NAME=fsanitize_clang
- WITH_COVERAGE="OFF"
- WITH_MEMCHECK="OFF"
- NIFTI_SHELL_SCRIPT_TESTS="ON"
- SCANBUILD_EXE="scan-build -v --status-bugs"
- CCC_CC=clang
- CCC_CXX=clang++
- compiler: clang
os: osx
osx_image: xcode11
env:
- BLDPREFIX=rel
- PARALLEL_LEVEL=3
- AGENT_BUILDDIRECTORY=${TRAVIS_BUILD_DIR}/NIFTIworkspace
- BUILD_SOURCESDIRECTORY=${TRAVIS_BUILD_DIR}
- BUILD_BUILDID=${TRAVIS_BUILD_ID}
- SYSTEM_PULLREQUEST_SOURCEBRANCH=${TRAVIS_PULL_REQUEST_BRANCH}
- BUILD_SOURCEBRANCHNAME=${TRAVIS_PULL_REQUEST_BRANCH}
- SYSTEM_PULLREQUEST_PULLREQUESTNUMBER=${TRAVIS_PULL_REQUEST}
- CTEST_SCRIPT_DIRECTORY=${TRAVIS_BUILD_DIR}/cmake
# -m64 -fsanitize=address,undefined
- CFLAGS="-O3 -Wall -Wextra -Wshadow -Wunused-variable -Wunused-parameter -Wunused-function -Wunused -Wno-system-headers -Wno-deprecated -Wwrite-strings"
- CXXFLAGS="-O3 -Wall -Wextra -Wshadow -Wunused-variable -Wunused-parameter -Wunused-function -Wunused -Wno-system-headers -Wno-deprecated -Wwrite-strings"
- INTERPROCEDURAL_OPTIMIZATION="ON"
- B_NAME=osx_clang
- WITH_COVERAGE="OFF"
- WITH_MEMCHECK="OFF"
- NIFTI_SHELL_SCRIPT_TESTS="ON"
- SCANBUILD_EXE=""
- CCC_CC=clang
- CCC_CXX=clang++
before_install:
#- env
- cd ${TRAVIS_BUILD_DIR}
install: true
before_script: true
script:
- which $CXX && $CXX --version || true
- which $CC && $CC --version || true
- which scan-build || true
- which gcov && gcov --version || true
- which valgrind && valgrind --version || true
- which cmake && cmake --version || true
- ${SCANBUILD_EXE} ctest -S ${CTEST_SCRIPT_DIRECTORY}/travis_dashboard.cmake -V -j 4
after_success: true
after_failure: true
after_script: true