-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path.travis.yml
179 lines (159 loc) · 4.88 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
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
# Project Configuration
# C++ Project
language: cpp
dist: trusty
sudo: required
# Build Job Matrix
stages:
- test
- name: deploy
if: branch = master
jobs:
include:
# Valgrind
- stage: test
os: linux
compiler: gcc
addons:
apt:
sources: ['ubuntu-toolchain-r-test']
packages: ['g++-7', 'cmake', 'ninja-build', 'valgrind',
'libopenblas-dev', 'liblapack-dev',
'libarpack2-dev']
env:
- CXX_COMPILER="g++-7"
- CC_COMPILER="gcc-7"
- CTEST_OPTIONS="-T memcheck"
- VALGRIND="ON"
# Coveralls
- stage: test
os: linux
compiler: gcc
addons:
apt:
sources: ['ubuntu-toolchain-r-test']
packages: ['g++-7', 'cmake', 'ninja-build',
'libopenblas-dev', 'liblapack-dev',
'libarpack2-dev']
before_install:
- sudo -H pip install --upgrade requests[security]
- pip install --user cpp-coveralls
after_success:
- >
coveralls
--root ../../
--build-root ./
--include include
--exclude lib
--gcov 'gcov-7'
--gcov-options '\-lp'
env:
- CXX_COMPILER="g++-7"
- CC_COMPILER="gcc-7"
- COVERALL="ON"
- CMAKE_OPTIONS="-DAUTOPPL_ENABLE_TEST_COVERAGE=ON"
# Linux/GCC>=5
- stage: test
os: linux
compiler: gcc
env:
- CXX_COMPILER="g++-7"
- CC_COMPILER="gcc-7"
addons:
apt:
sources: ['ubuntu-toolchain-r-test']
packages: ['g++-7', 'ninja-build',
'libopenblas-dev', 'liblapack-dev',
'libarpack2-dev']
- os: linux
compiler: gcc
env:
- CXX_COMPILER="g++-8"
- CC_COMPILER="gcc-8"
addons:
apt:
sources: ['ubuntu-toolchain-r-test']
packages: ['g++-8', 'ninja-build',
'libopenblas-dev', 'liblapack-dev',
'libarpack2-dev']
- stage: test
os: linux
compiler: gcc
env:
- CXX_COMPILER="g++-9"
- CC_COMPILER="gcc-9"
addons:
apt:
sources: ['ubuntu-toolchain-r-test']
packages: ['g++-9', 'ninja-build',
'libopenblas-dev', 'liblapack-dev',
'libarpack2-dev']
- stage: test
dist: bionic
os: linux
compiler: gcc
env:
- CXX_COMPILER="g++-10"
- CC_COMPILER="gcc-10"
- CMAKE_OPTIONS="-DCMAKE_CXX_FLAGS=-std=c++20"
addons:
apt:
sources: ['ubuntu-toolchain-r-test']
packages: ['g++-10', 'ninja-build',
'libopenblas-dev', 'liblapack-dev',
'libarpack2-dev']
- stage: deploy
dist: bionic
os: linux
compiler: gcc
addons:
apt:
sources: ['ubuntu-toolchain-r-test']
packages: ['g++-9', 'libstdc++6', 'build-essential',
'python', 'cmake', 'flex', 'bison']
script:
- git clone --depth 1 --branch Release_1_8_20 https://github.com/doxygen/doxygen.git
- cd doxygen
- mkdir build
- cd build
- cmake -G "Unix Makefiles" ..
- make
- sudo make install
- cd ../../
- /usr/local/bin/doxygen -v
- /usr/local/bin/doxygen docs/doxygen/Doxyfile
deploy:
provider: pages
skip_cleanup: true
local_dir: docs/doxygen/html
github_token: $GH_PAGES_TOKEN
target_branch: gh-pages
on:
branch: master
# Build Script
script:
# set CXX to correct compiler
- if [[ "${CXX_COMPILER}" != "" ]]; then
export CXX=${CXX_COMPILER};
export CC=${CC_COMPILER};
fi
# show OS/compiler/cmake version
- uname -a
- ${CXX} --version
- ${CC} --version
- cmake --version
# setup, clean build, and test
- ./setup.sh
- >
./clean-build.sh
release
${CMAKE_OPTIONS}
-DAUTOPPL_ENABLE_BENCHMARK=OFF
-DAUTOPPL_ENABLE_TEST=ON
-DAUTOPPL_ENABLE_EXAMPLE=ON
- cd build/release
- ctest ${CTEST_OPTIONS} -j12
# if testing valgrind
- if [[ "${VALGRIND}" == "ON" ]]; then
cat ./Testing/Temporary/MemoryChecker.*.log;
fi