forked from cmu-db/noisepage
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Jenkinsfile
executable file
·128 lines (121 loc) · 5.67 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
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.0.1"
}
steps {
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 && python ../script/testing/junit/run_junit.py'
}
}
stage('ubuntu-18.04/gcc-7.3.0 (Debug/ASAN/unittest)') {
agent {
docker {
image 'ubuntu:bionic'
args '--cap-add sys_ptrace'
}
}
steps {
sh 'echo y | sudo ./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 && timeout 1h make unittest'
sh 'cd build && python ../script/testing/junit/run_junit.py'
}
}
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 y | sudo ./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 && timeout 1h make unittest'
sh 'cd build && python ../script/testing/junit/run_junit.py'
}
}
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.0.1"
}
steps {
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 && python ../script/testing/junit/run_junit.py --build_type=release'
}
}
stage('ubuntu-18.04/gcc-7.3.0 (Release/unittest)') {
agent {
docker {
image 'ubuntu:bionic'
}
}
steps {
sh 'echo y | sudo ./script/installation/packages.sh'
sh 'mkdir build'
sh 'cd build && cmake -DCMAKE_BUILD_TYPE=Release -DTERRIER_USE_ASAN=OFF .. && make -j4'
sh 'cd build && timeout 1h make unittest'
sh 'cd build && python ../script/testing/junit/run_junit.py --build_type=release'
}
}
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 y | sudo ./script/installation/packages.sh'
sh 'mkdir build'
sh 'cd build && cmake -DCMAKE_BUILD_TYPE=Release -DTERRIER_USE_ASAN=OFF .. && make -j4'
sh 'cd build && timeout 1h make unittest'
sh 'cd build && python ../script/testing/junit/run_junit.py --build_type=release'
}
}
stage('ubuntu-18.04/gcc-7.3.0 (Release/benchmark)') {
agent { label 'benchmark' }
steps {
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 -j4'
sh 'cd build && timeout 1h make runbenchmark'
sh 'cd script/micro_bench && ./run_micro_bench.py'
archiveArtifacts 'script/micro_bench/*.json'
junit 'script/micro_bench/*.xml'
}
}
}
}
}
}