-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathJenkinsfile
More file actions
62 lines (54 loc) · 1.76 KB
/
Jenkinsfile
File metadata and controls
62 lines (54 loc) · 1.76 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
#!groovy
pipeline {
agent any
triggers {
pollSCM('H/15 * * * *')
}
stages {
stage('Build with GNU') {
steps {
sh 'mkdir -p cmake-build-gnu'
dir('cmake-build-gnu') {
sh "cmake -DCMAKE_INSTALL_PREFIX=\$PWD .."
sh "make -j4 && make install"
sh "./bin/ester 1d -noplot -o M5-1d.h5"
sh "./bin/ester 2d -noplot -i M5-1d.h5 -o M5-omega0.8.h5 -Omega_bk 0.8"
}
}
}
stage('Build with Clang') {
steps {
sh 'mkdir -p cmake-build-clang'
dir('build-clang') {
sh "cmake -DCMAKE_INSTALL_PREFIX=\$PWD -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_C_COMPILER=clang .."
sh "make -j4 && make install"
sh "./bin/ester 1d -noplot -o M5-1d.h5"
sh "./bin/ester 2d -noplot -i M5-1d.h5 -o M5-omega0.8.h5 -Omega_bk 0.8"
}
}
}
stage('Read reference') {
steps {
dir('cmake-build-gnu') {
sh "./bin/ester info ../references/M5-omega0.8.h5"
sh "./bin/ester vtk ../references/M5-omega0.8.h5 -o M5-omega0.8.vtk"
}
}
}
}
post {
always {
dir('cmake-build-clang') {
deleteDir()
}
dir('cmake-build-clang') {
deleteDir()
}
}
failure {
mail to: 'ester-dev@irap.omp.eu',
subject: "Jenkins build failed: ${currentBuild.fullDisplayName}",
body: "Something is wrong with ${env.BUILD_URL}"
}
}
}