forked from molgenis/VaSeBuilder
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Jenkinsfile
54 lines (52 loc) · 1.55 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
pipeline {
agent any
stages {
stage('Checkout') {
steps {
checkout scm
}
}
stage('Build Environment') {
steps {
sh '''
python -m venv env
source env/bin/activate
python -m pip install -r requirements.txt
python -m pip install pyenchant
python -m pip install pylint
'''
}
}
stage('Pylint') {
steps {
sh '''
source env/bin/activate
python -m pylint --exit-zero -f parseable -d W1202 --ignore=config,deprecated,docs,env,tests,VaSeEval,VaSeUtils,vaseutils.py ./*py > pylint.report
'''
}
post {
always{
recordIssues(
tools: [pyLint(pattern: 'pylint.report')],
unstableTotalAll: 100,
failedTotalAll: 120,
unstableTotalNormal: 10,
failedTotalNormal: 15,
failedTotalHigh: 1
)
}
}
}
stage('Help Menus') {
steps {
sh '''
source env/bin/activate
python vase.py -h
python vase.py BuildSpikeIns -h
python vase.py AssembleValidationSet -h
python vase.py BuildValidationSet -h
'''
}
}
}
}