forked from verilog-to-routing/vtr-verilog-to-routing
-
Notifications
You must be signed in to change notification settings - Fork 12
/
.travis.yml
260 lines (249 loc) · 8.06 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
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
version: ~> 1.0
language: cpp
dist: bionic
addons:
apt:
sources:
- sourceline: 'ppa:ubuntu-toolchain-r/test'
packages:
- autoconf
- automake
- bash
- bison
- binutils
- binutils-gold
- build-essential
- cmake
- ctags
- curl
- doxygen
- flex
- fontconfig
- gdb
- git
- gperf
- libcairo2-dev
- libgtk-3-dev
- libevent-dev
- libfontconfig1-dev
- liblist-moreutils-perl
- libncurses5-dev
# - libtbb-dev
- libx11-dev
- libxft-dev
- libxml++2.6-dev
- perl
- texinfo
- time
- valgrind
- zip
- qt5-default
- clang-format-7
# All the compilers!
- g++-5
- gcc-5
- g++-6
- gcc-6
- g++-7
- gcc-7
- g++-8
- gcc-8
- g++-9
- gcc-9
- clang-6.0
- clang-8
env:
- MATRIX_EVAL="CC=gcc-6 && CXX=g++-6"
stages:
# - name: Build
# if: type != cron
- name: Test
if: type != cron
- name: Build Coverity
if: type = cron
jobs:
include:
#Build stage disabled for now due to caching issues
#- stage: Build
#name: "Building VtR"
#env:
#- MATRIX_EVAL="CC=gcc-6 && CXX=g++-6"
#- BUILD_TYPE=release
#script:
#- ./.github/travis/build.sh
- stage: Test
name: "Code Formatting - C/C++"
script:
- ./dev/check-format.sh
- stage: Test
name: "Code Formatting - Python"
script:
- ./dev/check-format-py.sh
- stage: Test
name: "Python Lint"
script:
- python3 ./dev/pylint_check.py
- stage: Test
name: "C++ Unit Tests"
env:
- CMAKE_PARAMS="-DVTR_ASSERT_LEVEL=3 -DWITH_BLIFEXPLORER=on"
- MATRIX_EVAL="CC=gcc-5 && CXX=g++-5"
script:
- ./.github/travis/build.sh
- ./.github/travis/unittest.sh
- stage: Test
name: "Check Compilation Warnings"
env:
#In order to get compilation warnings produced per source file, we must do a non-IPO build
#We also turn warnings into errors for this target by doing a strict compile
- CMAKE_PARAMS="-DVTR_ASSERT_LEVEL=3 -DWITH_BLIFEXPLORER=on -DVTR_ENABLE_STRICT_COMPILE=on -DVTR_IPO_BUILD=off"
- MATRIX_EVAL="CC=gcc-5 && CXX=g++-5"
script:
- ./.github/travis/build.sh
- stage: Test
name: "Basic Regression Tests"
env:
- CMAKE_PARAMS="-DVTR_ASSERT_LEVEL=3 -DWITH_BLIFEXPLORER=on"
- MATRIX_EVAL="CC=gcc-5 && CXX=g++-5"
script:
- ./.github/travis/build.sh
- travis_wait 30 ./run_reg_test.py vtr_reg_basic -show_failures -j2
- stage: Test
name: "Basic Regression Tests with NO_GRAPHICS"
env:
- CMAKE_PARAMS="-DVTR_ASSERT_LEVEL=3 -DWITH_BLIFEXPLORER=on -DVPR_USE_EZGL=off"
- MATRIX_EVAL="CC=gcc-5 && CXX=g++-5"
script:
- ./.github/travis/build.sh
- travis_wait 30 ./run_reg_test.py vtr_reg_basic -show_failures -j2
- stage: Test
name: "Basic Regression Tests with VTR_ENABLE_DEBUG_LOGGING"
env:
- CMAKE_PARAMS="-DVTR_ASSERT_LEVEL=3 -DWITH_BLIFEXPLORER=on -DVTR_ENABLE_DEBUG_LOGGING=on"
- MATRIX_EVAL="CC=gcc-5 && CXX=g++-5"
script:
- ./.github/travis/build.sh
- travis_wait 30 ./run_reg_test.py vtr_reg_basic -show_failures -j2
- stage: Test
name: "Strong Regression Tests"
env:
- CMAKE_PARAMS="-DVTR_ASSERT_LEVEL=3 -DWITH_BLIFEXPLORER=on"
- MATRIX_EVAL="CC=gcc-5 && CXX=g++-5"
script:
- ./.github/travis/build.sh
- travis_wait 30 ./run_reg_test.py vtr_reg_strong -show_failures -j2
- stage: Test
name: "Basic Valgrind Memory Tests"
env:
- CMAKE_PARAMS="-DVTR_ASSERT_LEVEL=3 -DWITH_BLIFEXPLORER=on"
- MATRIX_EVAL="CC=gcc-5 && CXX=g++-5"
script:
- ./.github/travis/build.sh
- travis_wait 30 ./run_reg_test.py vtr_reg_valgrind_small -show_failures -j2
- stage: Test
name: "Sanitized Basic Regression Tests"
env:
- CMAKE_PARAMS="-DVTR_ASSERT_LEVEL=3 -DVTR_ENABLE_SANITIZE=on -DVTR_IPO_BUILD=off -DWITH_BLIFEXPLORER=on"
- MATRIX_EVAL="CC=gcc-5 && CXX=g++-5"
- BUILD_TYPE=debug
- LSAN_OPTIONS="exitcode=42" #Use a non-standard exit code to ensure LSAN errors are detected
script:
- ./.github/travis/build.sh
#We skip QoR since we are only checking for errors in sanitizer runs
- travis_wait 50 ./run_reg_test.py vtr_reg_basic -show_failures -skip_qor -j2
#Currently strong regression with sanitizers is disabled as it exceeds the maximum travis job run-time
#- stage: Test
#name: "Sanitized Strong Regression Tests"
#env:
#- CMAKE_PARAMS="-DVTR_ASSERT_LEVEL=3 -DVTR_ENABLE_SANITIZE=on -DVTR_IPO_BUILD=off -DWITH_BLIFEXPLORER=on"
#- MATRIX_EVAL="CC=gcc-5 && CXX=g++-5"
#- BUILD_TYPE=debug
#- LSAN_OPTIONS="exitcode=42" #Use a non-standard exit code to ensure LSAN errors are detected
#script:
#- ./.github/travis/build.sh
##We skip QoR since we are only checking for errors in sanitizer runs
#- travis_wait 60 ./run_reg_test.py vtr_reg_strong -show_failures -skip_qor -j2
- stage: Test
name: "ODIN-II Micro Tests"
env:
- CMAKE_PARAMS="-DVTR_ASSERT_LEVEL=3 -DVTR_ENABLE_SANITIZE=on -DVTR_IPO_BUILD=off -DWITH_BLIFEXPLORER=on"
- MATRIX_EVAL="CC=gcc-5 && CXX=g++-5"
- BUILD_TYPE=debug
script:
- ./.github/travis/build.sh
- ./run_reg_test.py odin_reg_micro -show_failures -j2
- stage: Test
name: "Build Compatibility: GCC 5 (Ubuntu Xenial - 16.04)"
env:
- CMAKE_PARAMS="-DVTR_ASSERT_LEVEL=3 -DWITH_BLIFEXPLORER=on"
- MATRIX_EVAL="CC=gcc-5 && CXX=g++-5"
- BUILD_TYPE=release_strict
script:
- ./.github/travis/build.sh
- stage: Test
name: "Build Compatibility: GCC 6 (Debian Stretch)"
env:
- CMAKE_PARAMS="-DVTR_ASSERT_LEVEL=3 -DWITH_BLIFEXPLORER=on"
- MATRIX_EVAL="CC=gcc-6 && CXX=g++-6"
- BUILD_TYPE=release_strict
script:
- ./.github/travis/build.sh
- stage: Test
name: "Build Compatibility: GCC 7 (Ubuntu Bionic - 18.04)"
env:
- CMAKE_PARAMS="-DVTR_ASSERT_LEVEL=3 -DWITH_BLIFEXPLORER=on"
- MATRIX_EVAL="CC=gcc-7 && CXX=g++-7"
script:
- ./.github/travis/build.sh
- stage: Test
name: "Build Compatibility: GCC 8 (Ubuntu Latest)"
env:
- CMAKE_PARAMS="-DVTR_ASSERT_LEVEL=3 -DWITH_BLIFEXPLORER=on"
- MATRIX_EVAL="CC=gcc-8 && CXX=g++-8"
script:
- ./.github/travis/build.sh
- stage: Test
name: "Build Compatibility: GCC 9 (Latest Release)"
env:
- CMAKE_PARAMS="-DVTR_ASSERT_LEVEL=3 -DWITH_BLIFEXPLORER=on"
- MATRIX_EVAL="CC=gcc-9 && CXX=g++-9"
script:
- ./.github/travis/build.sh
- stage: Test
name: "Build Compatibility: Clang 6 (Debian + Ubuntu common)"
env:
- CMAKE_PARAMS="-DVTR_ASSERT_LEVEL=3 -DWITH_BLIFEXPLORER=on"
- MATRIX_EVAL="CC=clang-6.0 && CXX=clang++-6.0"
script:
- ./.github/travis/build.sh
- stage: Test
name: "Build Compatibility: Clang 8 (Latest Release)"
env:
- CMAKE_PARAMS="-DVTR_ASSERT_LEVEL=3 -DWITH_BLIFEXPLORER=on"
- MATRIX_EVAL="CC=clang-8 && CXX=clang++-8"
script:
- ./.github/travis/build.sh
- stage: Build Coverity
name: "Coverity Scan"
env:
- CMAKE_PARAMS="-DVTR_ASSERT_LEVEL=3 -DWITH_BLIFEXPLORER=on"
- MATRIX_EVAL="CC=gcc-6 && CXX=g++-6"
- _COVERITY_URL="https://scan.coverity.com/download/linux64"
- _COVERITY_MD5="d0d7d7df9d6609e578f85096a755fb8f"
script:
- ./.github/travis/cron_build.sh
before_script:
# Switch to python 3.6.3
- pyenv install -f 3.6.3
- pyenv global 3.6.3
# Install python modules
- curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
- python3 get-pip.py
- rm get-pip.py
- python3 -m pip install -r requirements.txt
- source .github/travis/common.sh
- ./.github/travis/setup.sh
after_script:
- ./.github/travis/setup.sh
script:
- true