-
Notifications
You must be signed in to change notification settings - Fork 2
/
Jenkinsfile
31 lines (28 loc) · 918 Bytes
/
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
pipeline {
agent any
stages {
stage('setup') {
steps {
sh "ls"
}
}
stage('test') {
steps {
checkout([$class: 'GitSCM', branches: [[name: '*/master']], doGenerateSubmoduleConfigurations: false, extensions: [[$class: 'RelativeTargetDirectory', relativeTargetDir: 'haf-sample']], submoduleCfg: [], userRemoteConfigs: [[url: 'https://github.com/hautof/haf-sample']]])
sh 'cp -rf ./haf-sample/* ./'
sh 'python3 -m haf run -c=config.json -nout=true'
sh 'python3 -m haf run -c=config.json -llog=true'
sh 'python3 -m haf run -c=config.json -llog=true -nout=true'
sh 'rm -rf .coverage.*'
sh 'coverage run --parallel-mod --source=./haf/ -m haf run -c=config.json'
sh 'coverage combine'
sh 'coverage report'
}
}
stage('teardown') {
steps {
sh 'pip3 install haf -U'
}
}
}
}