-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy pathJenkinsfile
64 lines (64 loc) · 2.92 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
pipeline {
agent none
environment {
CODECOV_TOKEN = credentials('codecov-token-transpyle')
}
stages { stage('Test') { parallel {
stage('C') {
agent { label 'x86_64 && gpu && pgi' }
steps {
sh "TEST_LONG=1 python3 -m coverage run --branch --source . -m unittest -v test.test_c"
sh "if [[ \"${env.BRANCH_NAME}\" == \"master\" ]] ; then codecov --build \"${NODE_NAME} ${BUILD_DISPLAY_NAME}\" --token \"${CODECOV_TOKEN}\" ; fi"
}
}
stage('C++') {
agent { label 'x86_64 && gpu && pgi' }
steps {
sh "TEST_LONG=1 python3 -m coverage run --branch --source . -m unittest -v test.test_cpp"
sh "if [[ \"${env.BRANCH_NAME}\" == \"master\" ]] ; then codecov --build \"${NODE_NAME} ${BUILD_DISPLAY_NAME}\" --token \"${CODECOV_TOKEN}\" ; fi"
}
}
stage('Fortran') {
agent { label 'x86_64 && gpu && pgi' }
steps {
sh "TEST_LONG=1 python3 -m coverage run --branch --source . -m unittest -v test.test_fortran"
sh "if [[ \"${env.BRANCH_NAME}\" == \"master\" ]] ; then codecov --build \"${NODE_NAME} ${BUILD_DISPLAY_NAME}\" --token \"${CODECOV_TOKEN}\" ; fi"
}
}
stage('Python') {
agent { label 'x86_64 && gpu && pgi' }
steps {
sh "TEST_LONG=1 python3 -m coverage run --branch --source . -m unittest -v test.test_python"
sh "if [[ \"${env.BRANCH_NAME}\" == \"master\" ]] ; then codecov --build \"${NODE_NAME} ${BUILD_DISPLAY_NAME}\" --token \"${CODECOV_TOKEN}\" ; fi"
}
}
stage('Python as IR') {
agent { label 'x86_64 && gpu && pgi' }
steps {
sh "TEST_LONG=1 python3 -m coverage run --branch --source . -m unittest -v test.test_pair"
sh "if [[ \"${env.BRANCH_NAME}\" == \"master\" ]] ; then codecov --build \"${NODE_NAME} ${BUILD_DISPLAY_NAME}\" --token \"${CODECOV_TOKEN}\" ; fi"
}
}
stage('Integration') {
agent { label 'x86_64 && gpu && pgi' }
steps {
sh "TEST_LONG=1 python3 -m coverage run --branch --source . -m unittest -v test.test_integration"
sh "if [[ \"${env.BRANCH_NAME}\" == \"master\" ]] ; then codecov --build \"${NODE_NAME} ${BUILD_DISPLAY_NAME}\" --token \"${CODECOV_TOKEN}\" ; fi"
}
}
stage('Apps') {
agent { label 'x86_64 && gpu && pgi' }
steps {
sh "TEST_APPS_ROOT=~/Projects/ TEST_LONG=1 python3 -m coverage run --branch --source . -m unittest -v test.test_apps"
sh "if [[ \"${env.BRANCH_NAME}\" == \"master\" ]] ; then codecov --build \"${NODE_NAME} ${BUILD_DISPLAY_NAME}\" --token \"${CODECOV_TOKEN}\" ; fi"
}
}
stage('Performance') {
agent { label 'x86_64 && gpu && pgi' }
steps {
sh "TEST_LONG=1 python3 -m coverage run --branch --source . -m unittest -v test.test_performance"
sh "if [[ \"${env.BRANCH_NAME}\" == \"master\" ]] ; then codecov --build \"${NODE_NAME} ${BUILD_DISPLAY_NAME}\" --token \"${CODECOV_TOKEN}\" ; fi"
}
}
} } }
}