-
Notifications
You must be signed in to change notification settings - Fork 0
/
Jenkinsfile
50 lines (50 loc) · 1.12 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
pipeline {
agent any
stages {
stage('Build') {
steps {
sh 'rm -rf build'
echo 'Start build process...'
timeout(unit: 'MINUTES', time: 10) {
sh '''ln -snf /var/lib/jenkins/cgrame-resource/gurobi751 ../gurobi751
mkdir -p build
cd build
cmake -DCMAKE_PREFIX_PATH=/home/tech4me/llvm/build -DBUILD_LLVM_PASSES=ON -DCMAKE_BUILD_TYPE=release ../
make'''
}
}
}
stage('Test DFG Generation') {
steps {
echo 'Testing DFG generation...'
sh '''export PATH=/home/tech4me/llvm/build/bin/:$PATH
cd benchmarks/microbench/
make'''
sh '''./../../cgrame-resource/microbench_result/diff_microbench_result.sh'''
}
}
stage('Test Mapping') {
steps {
echo 'Testing Mapping...'
sh '''./../../cgrame-resource/mapper_test.sh'''
}
}
stage('Done') {
steps {
echo 'Done!'
}
}
}
post {
always {
echo 'Cleaning up...'
deleteDir()
}
success {
echo 'All Success!'
}
failure {
echo 'Failed!'
}
}
}