forked from korfuri/django-prometheus
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Jenkinsfile
38 lines (33 loc) · 1.08 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
#!groovy
@Library('wpshared') _
node ('docker') {
wpe.pipeline('Giant Meteor') {
stage('Test') {
sh 'make test'
// TODO: Add a junit report to the test run
// junit 'src/reports/junit.xml'
// cobertura 'src/reports/coverage.xml'
// violations(100) {
// sourcePathPattern '**/src'
// pep8(1, 5, 100, 'src/reports/pep8.report')
// pylint(10, 50, 100, 'src/reports/pylint.report')
// }
// TODO: Add coverage report to the test run
// publishHTML (target: [
// allowMissing: false,
// alwaysLinkToLastBuild: false,
// keepAll: true,
// reportDir: 'src/reports/coverage',
// reportFiles: '*',
// reportName: 'Test Coverage'
// ])
}
stage('Build') {
sh 'make sdist'
}
stage('Publish') {
def packagePath = sh(returnStdout: true, script: 'ls dist/*.tar.gz').trim()
gemFury.publishPackage(packagePath)
}
}
}