File tree Expand file tree Collapse file tree 1 file changed +21
-25
lines changed
Expand file tree Collapse file tree 1 file changed +21
-25
lines changed Original file line number Diff line number Diff line change @@ -2,33 +2,29 @@ pipeline {
22 agent any
33
44 stages {
5- stage(' ci' ) {
6- parallel {
5+ stage(' lint' ) {
6+ steps {
7+ sh ''' #!/bin/bash
8+ export PATH=$PATH:$CONDAPATH
9+ source activate climada_env
10+ rm -f pylint.log
11+ pylint -ry climada | tee pylint.log'''
712
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 --parallel-mode --concurrency=multiprocessing tests_runner.py unit
25- python -m coverage run --parallel-mode --concurrency=multiprocessing tests_runner.py integ
26- python -m coverage combine
27- python -m coverage xml -o coverage.xml
28- python -m coverage html -d coverage'''
29- }
30- }
13+ recordIssues tools : [pyLint(pattern : ' pylint.log' )]
14+ }
15+ }
3116
17+ stage(' integ_test' ) {
18+ steps {
19+ sh ''' #!/bin/bash
20+ export PATH=$PATH:$CONDAPATH
21+ source activate climada_env
22+ rm -rf tests_xml/
23+ python -m coverage run --parallel-mode --concurrency=multiprocessing tests_runner.py unit
24+ python -m coverage run --parallel-mode --concurrency=multiprocessing tests_runner.py integ
25+ python -m coverage combine
26+ python -m coverage xml -o coverage.xml
27+ python -m coverage html -d coverage'''
3228 }
3329 }
3430 }
You can’t perform that action at this time.
0 commit comments