Skip to content

Commit f293def

Browse files
jenkins: reconfiguration
1 parent d5802c3 commit f293def

File tree

2 files changed

+40
-0
lines changed

2 files changed

+40
-0
lines changed
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
pipeline {
2+
agent any
3+
4+
stages {
5+
stage('ci') {
6+
parallel {
7+
8+
stage('lint') {
9+
steps {
10+
sh '''#!/bin/bash
11+
export PATH=$PATH:$CONDAPATH
12+
source activate climada_env
13+
pylint -ry climada | tee pylint.log'''
14+
15+
recordIssues tools: [pyLint(pattern: 'pylint.log')]
16+
}
17+
}
18+
19+
stage('integ_test') {
20+
steps {
21+
sh '''#!/bin/bash
22+
export PATH=$PATH:$CONDAPATH
23+
source activate climada_env
24+
python -m coverage run tests_runner.py integ
25+
python -m coverage xml -o coverage.xml
26+
python -m coverage html -d coverage'''
27+
}
28+
}
29+
30+
}
31+
}
32+
}
33+
34+
post {
35+
always {
36+
junit 'tests_xml/*.xml'
37+
cobertura coberturaReportFile: 'coverage.xml'
38+
}
39+
}
40+
}

0 commit comments

Comments
 (0)