forked from cmu-db/noisepage
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathJenkinsfile
executable file
·181 lines (174 loc) · 8.97 KB
/
Jenkinsfile
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
pipeline {
agent none
options {
buildDiscarder(logRotator(daysToKeepStr: '30'))
}
stages {
stage('Build') {
parallel {
stage('macos-10.14/AppleClang-1001.0.46.4 (Debug/ASAN/unittest)') {
agent { label 'macos' }
environment {
ASAN_OPTIONS="detect_container_overflow=0"
LLVM_DIR="/usr/local/Cellar/llvm@8/8.0.1"
}
steps {
sh 'echo $NODE_NAME'
sh 'echo y | ./script/installation/packages.sh'
sh 'mkdir build'
sh 'cd build && cmake -DCMAKE_BUILD_TYPE=Debug -DTERRIER_USE_ASAN=ON .. && make -j4'
sh 'cd build && make check-clang-tidy'
sh 'cd build && gtimeout 1h make unittest'
sh 'cd build && gtimeout 1h make check-tpl'
sh 'cd build && python ../script/testing/junit/run_junit.py'
sh 'cd build && make clean'
}
}
stage('ubuntu-18.04/gcc-7.3.0 (Debug/ASAN/unittest)') {
agent {
docker {
image 'ubuntu:bionic'
args '--cap-add sys_ptrace'
}
}
steps {
sh 'echo $NODE_NAME'
sh 'echo y | sudo ./script/installation/packages.sh'
sh 'mkdir build'
sh 'cd build && cmake -DCMAKE_BUILD_TYPE=Debug -DTERRIER_USE_ASAN=ON .. && make -j$(nproc)'
sh 'cd build && make check-clang-tidy'
sh 'cd build && timeout 1h make unittest'
sh 'cd build && timeout 1h make check-tpl'
sh 'cd build && python ../script/testing/junit/run_junit.py'
sh 'cd build && make clean'
}
}
stage('ubuntu-18.04/gcc-7.3.0 (Debug/Coverage/unittest)') {
agent {
docker {
image 'ubuntu:bionic'
args '--cap-add sys_ptrace'
}
}
environment {
CODECOV_TOKEN=credentials('codecov-token')
}
steps {
sh 'echo $NODE_NAME'
sh 'echo y | sudo ./script/installation/packages.sh'
sh 'sudo apt-get -y install curl lcov'
sh 'mkdir build'
sh 'cd build && cmake -DCMAKE_BUILD_TYPE=Debug -DTERRIER_USE_ASAN=OFF -DTERRIER_GENERATE_COVERAGE=ON -DTERRIER_BUILD_BENCHMARKS=OFF .. && make -j$(nproc)'
sh 'cd build && timeout 1h make unittest'
sh 'cd build && timeout 1h make check-tpl'
sh 'cd build && python ../script/testing/junit/run_junit.py'
sh 'cd build && lcov --directory . --capture --output-file coverage.info'
sh 'cd build && lcov --remove coverage.info \'/usr/*\' --output-file coverage.info'
sh 'cd build && lcov --remove coverage.info \'*/build/*\' --output-file coverage.info'
sh 'cd build && lcov --remove coverage.info \'*/third_party/*\' --output-file coverage.info'
sh 'cd build && lcov --remove coverage.info \'*/benchmark/*\' --output-file coverage.info'
sh 'cd build && lcov --remove coverage.info \'*/test/*\' --output-file coverage.info'
sh 'cd build && lcov --remove coverage.info \'*/src/main/*\' --output-file coverage.info'
sh 'cd build && lcov --list coverage.info'
sh 'cd build && curl -s https://codecov.io/bash > ./codecov.sh'
sh 'cd build && chmod a+x ./codecov.sh'
sh 'cd build && /bin/bash ./codecov.sh -X gcov'
sh 'cd build && make clean'
}
}
stage('ubuntu-18.04/clang-8.0.0 (Debug/ASAN/unittest)') {
agent {
docker {
image 'ubuntu:bionic'
args '--cap-add sys_ptrace'
}
}
environment {
CC="/usr/bin/clang-8"
CXX="/usr/bin/clang++-8"
}
steps {
sh 'echo $NODE_NAME'
sh 'echo y | sudo ./script/installation/packages.sh'
sh 'mkdir build'
sh 'cd build && cmake -DCMAKE_BUILD_TYPE=Debug -DTERRIER_USE_ASAN=ON .. && make -j$(nproc)'
sh 'cd build && make check-clang-tidy'
sh 'cd build && timeout 1h make unittest'
sh 'cd build && timeout 1h make check-tpl'
sh 'cd build && python ../script/testing/junit/run_junit.py'
sh 'cd build && make clean'
}
}
stage('macOS-10.14/AppleClang-1001.0.46.4 (Release/unittest)') {
agent { label 'macos' }
environment {
ASAN_OPTIONS="detect_container_overflow=0"
LLVM_DIR="/usr/local/Cellar/llvm@8/8.0.1"
}
steps {
sh 'echo $NODE_NAME'
sh 'echo y | ./script/installation/packages.sh'
sh 'mkdir build'
sh 'cd build && cmake -DCMAKE_BUILD_TYPE=Release -DTERRIER_USE_ASAN=OFF .. && make -j4'
sh 'cd build && gtimeout 1h make unittest'
sh 'cd build && gtimeout 1h make check-tpl'
sh 'cd build && python ../script/testing/junit/run_junit.py --build_type=release'
sh 'cd build && make clean'
}
}
stage('ubuntu-18.04/gcc-7.3.0 (Release/unittest)') {
agent {
docker {
image 'ubuntu:bionic'
}
}
steps {
sh 'echo $NODE_NAME'
sh 'echo y | sudo ./script/installation/packages.sh'
sh 'mkdir build'
sh 'cd build && cmake -DCMAKE_BUILD_TYPE=Release -DTERRIER_USE_ASAN=OFF .. && make -j$(nproc)'
sh 'cd build && timeout 1h make unittest'
sh 'cd build && timeout 1h make check-tpl'
sh 'cd build && python ../script/testing/junit/run_junit.py --build_type=release'
sh 'cd build && make clean'
}
}
stage('ubuntu-18.04/clang-8.0.0 (Release/unittest)') {
agent {
docker {
image 'ubuntu:bionic'
}
}
environment {
CC="/usr/bin/clang-8"
CXX="/usr/bin/clang++-8"
}
steps {
sh 'echo $NODE_NAME'
sh 'echo y | sudo ./script/installation/packages.sh'
sh 'mkdir build'
sh 'cd build && cmake -DCMAKE_BUILD_TYPE=Release -DTERRIER_USE_ASAN=OFF .. && make -j$(nproc)'
sh 'cd build && timeout 1h make unittest'
sh 'cd build && timeout 1h make check-tpl'
sh 'cd build && python ../script/testing/junit/run_junit.py --build_type=release'
sh 'cd build && make clean'
}
}
stage('ubuntu-18.04/gcc-7.3.0 (Release/benchmark)') {
agent { label 'benchmark' }
steps {
sh 'echo $NODE_NAME'
sh 'echo y | sudo ./script/installation/packages.sh'
sh 'mkdir build'
sh 'cd build && cmake -DCMAKE_BUILD_TYPE=Release -DTERRIER_USE_ASAN=OFF -DTERRIER_USE_JEMALLOC=ON .. && make -j$(nproc) all'
// sh 'cd build && timeout 1h make runbenchmark'
sh 'cd script/micro_bench && timeout 1h ./run_micro_bench.py --run'
archiveArtifacts 'script/micro_bench/*.json'
junit 'script/micro_bench/*.xml'
sh 'cd build && make clean'
}
}
}
}
}
}