-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.travis.yml
162 lines (155 loc) · 5.48 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
language: cpp
stages:
- Build
- Test
- Deploy
- Analyze
jobs:
include:
- stage: Build
os: linux
dist: xenial
compiler: gcc-7
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-7
- doxygen
env:
- GENERATOR="Unix Makefile"
- PATH=/opt/python/3.7.1/bin:$PATH
script:
- export CC=gcc-7
- export CXX=g++-7
- cd bin
- cmake .. -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=OFF
- cmake --build . --target spider2 -- -j$(nproc)
- rm -rf ../bin/*
- cmake .. -DCMAKE_BUILD_TYPE=Debug -DBUILD_TESTING=OFF
- cmake --build . --target spider2 -- -j$(nproc)
- rm -rf ../bin/*
- cmake .. -DCMAKE_BUILD_TYPE=Release -DUSE_JIT_EXPRESSION=OFF
- cmake --build . --target spider2 -- -j$(nproc)
- rm -rf ../bin/*
- cmake .. -DCMAKE_BUILD_TYPE=Debug -DUSE_JIT_EXPRESSION=OFF
- cmake --build . --target spider2 -- -j$(nproc)
- rm -rf ../bin/*
- cmake .. -DCMAKE_BUILD_TYPE=Release -DBUILD_LEGACY_RUNTIME=OFF
- cmake --build . --target spider2 -- -j$(nproc)
- rm -rf ../bin/*
- cmake .. -DCMAKE_BUILD_TYPE=Debug -DBUILD_LEGACY_RUNTIME=OFF
- cmake --build . --target spider2 -- -j$(nproc)
- rm -rf ../bin/*
- cmake .. -DCMAKE_BUILD_TYPE=Release -DBUILD_GANTT_EXPORTER=OFF
- cmake --build . --target spider2 -- -j$(nproc)
- rm -rf ../bin/*
- cmake .. -DCMAKE_BUILD_TYPE=Debug -DBUILD_GANTT_EXPORTER=OFF
- cmake --build . --target spider2 -- -j$(nproc)
- rm -rf ../bin/*
- cmake .. -DCMAKE_BUILD_TYPE=Release -DBUILD_GRAPH_EXPORTER=OFF
- cmake --build . --target spider2 -- -j$(nproc)
- rm -rf ../bin/*
- cmake .. -DCMAKE_BUILD_TYPE=Debug -DBUILD_GRAPH_EXPORTER=OFF
- cmake --build . --target spider2 -- -j$(nproc)
- stage: Build
os: windows
env: GENERATOR="Visual Studio 16 2019"
compiler: msvc19
before_install:
- choco install visualstudio2019buildtools --package-parameters "--includeRecommended --includeOptional"
- choco install visualstudio2019-workload-vctools
install:
- mkdir doxygen && cd doxygen
- curl https://www.doxygen.nl/files/doxygen-1.8.20.windows.x64.bin.zip -o doxygen.zip
- unzip doxygen.zip
- export PATH=$PATH:$PWD
- cd ..
script:
- cd bin
- cmake .. -DBUILD_TESTING=OFF
- cmake --build . --target spider2 --config Debug
- cmake --build . --target spider2 --config Release
- stage: Test
os: linux
dist: xenial
compiler: gcc-7
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-7
- doxygen
- gcovr
- lcov
env:
- GENERATOR="Unix Makefile"
- PATH=/opt/python/3.7.1/bin:$PATH
install:
- pip install gcovr
script:
- export CC=gcc-7
- export CXX=g++-7
- cd bin
- cmake .. -DCMAKE_BUILD_TYPE=Debug
- cmake --build . --target spider2 -- -j$(nproc)
- cd ..
- ./scripts/linux/runTest.sh all
- stage: Deploy
os: linux
dist: xenial
script:
- echo "Empty job"
before_deploy: "./scripts/linux/prepare_release_note.sh"
deploy:
- provider: releases
edge: true
token: $GITHUB_TOKEN
draft: true
release_notes_file: release_note.md
on:
repo: preesm/spider2
branch: master
tags: true
- stage: Analyze
os: linux
dist: xenial
compiler: gcc-7
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-7
- doxygen
- gcovr
- lcov
sonarcloud:
organization: "preesm"
env:
- GENERATOR="Unix Makefile"
- PATH=/opt/python/3.7.1/bin:$PATH
install:
- pip install gcovr
script:
- export CC=gcc-7
- export CXX=g++-7
- cd bin
- cmake .. -DCMAKE_BUILD_TYPE=Debug
- cd ..
- build-wrapper-linux-x86-64 --out-dir bw-output cmake --build bin/ --target all-spider2-test
- cd bin
- ./bin/all-spider2-test
- gcovr -r .. -s --sonarqube=sonarqube.xml
- sed 's/ branchesToCover=\"[0-9]\+\" coveredBranches=\"[0-9]\+\"/ /g' sonarqube.xml > sonarqubecleaned.xml # Remove condition coverage info from report, only line coverage interests us.
- cd ..
- sonar-scanner -Dsonar.login=${SONAR_TOKEN}
cache:
directories:
- '$HOME/.sonar/cache'
notifications:
email:
on_success: change
on_failure: change