-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathjenkinsut
More file actions
93 lines (93 loc) · 3.32 KB
/
jenkinsut
File metadata and controls
93 lines (93 loc) · 3.32 KB
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
pipeline {
agent {
label "master"
}
stages {
stage ("cpplint clang-tidy unit-test regression") {
parallel {
stage ('regression') {
agent {
label "worker"
}
steps {
script {
dir("trunk/build") {
sh """source /curr/software/util/modules-tcl/init/bash && \
module load merlin_build/new && \
rm -rf * && \
cmake3 -GNinja -DCMAKE_BUILD_TYPE=Release .. && \
ninja && \
export LM_LICENSE_FILE=1900@fcs:2100@fcs:2300@fcs: && \
(../docker/docker-run.sh ../test/run-test.sh regression || \
../docker/docker-run.sh ../test/run-test.sh regression-failed)"""
}
}
script {
dir("trunk/build") {
sh "rm -rf *"
}
}
}
}
stage ('cpplint clang-tidy unit-test xfopencv-test') {
agent {
label "worker"
}
steps {
script {
dir("trunk/cpplint") {
sh """export MERLIN_COMPILER_HOME=`pwd`/.. && python3 run.py"""
}
}
script {
dir("trunk/clang-tidy") {
sh """source /curr/software/util/modules-tcl/init/bash && \
module load merlin_build/new && \
export MERLIN_COMPILER_HOME=`pwd`/../ && \
python3 run.py"""
}
}
script {
dir("trunk/build") {
sh """source /curr/software/util/modules-tcl/init/bash && \
module load merlin_build/new && \
rm -rf * && \
cmake3 -GNinja -DCMAKE_BUILD_TYPE=Release .. && \
ninja"""
}
}
script {
dir("trunk/build") {
sh """source /curr/software/util/modules-tcl/init/bash && \
module load merlin_build/new && \
rm -rf * && \
cmake3 -GNinja -DCMAKE_BUILD_TYPE=Release .. && \
ninja && \
module purge && \
export LM_LICENSE_FILE=1900@fcs:2100@fcs:2300@fcs: && \
(../docker/docker-run.sh ../test/run-test.sh unit_test || \
../docker/docker-run.sh ../test/run-test.sh unit_test-failed)"""
}
}
script {
dir("trunk/build") {
sh """ rm -rf ../merlin_benchmark && \
git clone git@github.com:falcon-computing/merlin_benchmark.git ../merlin_benchmark && \
source /curr/software/util/modules-tcl/init/bash && \
module purge && \
export LM_LICENSE_FILE=1900@fcs:2100@fcs:2300@fcs: && \
(../docker/docker-run.sh ../test/run-test.sh xfopencv || \
../docker/docker-run.sh ../test/run-test.sh xfopencv-failed) """
}
}
script {
dir("trunk/build") {
sh "rm -rf *"
}
}
}
}
}
}
}
}