forked from cmu-db/noisepage
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathJenkinsfile
executable file
·82 lines (77 loc) · 3.8 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
pipeline {
agent none
options {
buildDiscarder(logRotator(daysToKeepStr: '30'))
}
stages {
stage('Build') {
parallel {
stage('macOS 10.13/Apple clang-1000.10.44.4/llvm-6.0.1 (Debug/ASAN)') {
agent { label 'macos' }
environment {
ASAN_OPTIONS="detect_container_overflow=0"
LLVM_DIR="/usr/local/Cellar/llvm@6/6.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 gflags_ep -j 4 && make googletest_ep -j 4 && make gbenchmark_ep -j 4 && make -j4'
sh 'cd build && make unittest -j4'
}
}
stage('Ubuntu Bionic/gcc-7.3.0/llvm-6.0.0 (Debug/ASAN)') {
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 gflags_ep -j 4 && make googletest_ep -j 4 && make gbenchmark_ep -j 4 && make -j4'
sh 'cd build && make unittest -j4'
}
}
stage('macOS 10.13/Apple clang-1000.10.44.4/llvm-6.0.1 (Release/unittest)') {
agent { label 'macos' }
environment {
ASAN_OPTIONS="detect_container_overflow=0"
LLVM_DIR="/usr/local/Cellar/llvm@6/6.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 gflags_ep -j 4 && make googletest_ep -j 4 && make gbenchmark_ep -j 4 && make -j4'
sh 'cd build && make unittest -j4'
}
}
stage('Ubuntu Bionic/gcc-7.3.0/llvm-6.0.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 -DBUILD_WARNING_LEVEL=Production .. && make gflags_ep -j 4 && make googletest_ep -j 4 && make gbenchmark_ep -j 4 && make -j4'
sh 'cd build && make unittest -j4'
}
}
stage('Ubuntu Bionic/gcc-7.3.0/llvm-6.0.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 -DBUILD_WARNING_LEVEL=Production .. && make gflags_ep -j 4 && make googletest_ep -j 4 && make gbenchmark_ep -j 4 && make -j4'
sh 'cd build && make runbenchmark -j4'
sh 'cd script/micro_bench && ./run_micro_bench.py'
archiveArtifacts 'script/micro_bench/*.json'
junit 'script/micro_bench/*.xml'
}
}
}
}
}
}