-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathJenkinsfile
34 lines (33 loc) · 1.67 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
#!/usr/bin/env groovy
pipeline {
agent any
stages{
stage('Build'){
steps {
sh 'composer install'
}
}
stage('Test'){
steps {
sh 'composer run ci:test'
}
post {
always {
publishHTML([allowMissing: false, alwaysLinkToLastBuild: false, keepAll: false, reportDir: 'tests/_output', reportFiles: 'report.html,coverage/index.html', reportName: 'Codeception report', reportTitles: 'Test overview,Code coverage'])
junit 'tests/_output/report.xml'
step([
$class: 'CloverPublisher',
cloverReportDir: 'tests/_output/coverage',
cloverReportFileName: '../coverage.xml',
healthyTarget: [methodCoverage: 70, conditionalCoverage: 80, statementCoverage: 80],
unhealthyTarget: [methodCoverage: 50, conditionalCoverage: 50, statementCoverage: 50],
failingTarget: [methodCoverage: 0, conditionalCoverage: 0, statementCoverage: 0]]
)
checkstyle canComputeNew: false, defaultEncoding: '', healthy: '0', pattern: 'reports/*-checkstyle.xml', unHealthy: '20', unstableTotalHigh: '0', unstableTotalNormal: '5'
pmd canComputeNew: false, defaultEncoding: '', healthy: '', pattern: 'reports/phpmd.xml', unHealthy: ''
dry canComputeNew: false, canRunOnFailed: true, defaultEncoding: '', healthy: '', pattern: 'reports/phpcpd.xml', unHealthy: '', unstableTotalHigh: '2'
}
}
}
}
}