-
Notifications
You must be signed in to change notification settings - Fork 2
/
.jenkinsfile
39 lines (37 loc) · 1.23 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
pipeline {
agent any
stages {
stage('show config') {
steps {
sh 'env'
}
}
stage('Build') {
steps {
script {
def fc = ['ifort', 'gfortran']
for (int i = 0; i < fc.size(); ++i) {
sh "make clean built FC=${fc[i]} CFG=release -j4"
}
}
}
}
stage('Testing') {
steps {
dir('test') {
sh 'rm -rf exe'
script {
def fc = ['ifort', 'gfortran']
def test = ['abstract_list', 'charstacker', 'crc', 'dyncast', 'fde', 'file', 'hash_map', 'item', 'ref', 'simulator', 'string']
for (int i = 0; i < fc.size(); ++i) {
for (int j = 0; j < test.size(); ++j) {
sh "make clean test_${test[j]} FC=${fc[i]} CFG=release"
sh "`make -s eval,OUT_DIR FC=${fc[i]} CFG=release`/test_${test[j]}"
}
}
}
}
}
}
}
}