Skip to content

Commit 2f89397

Browse files
committed
Add jenkinsfile
1 parent d0e37fb commit 2f89397

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

Jenkinsfile

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
stage('Unit Tests') {
2+
steps {
3+
sh 'composer install'
4+
sh 'php vendor/bin/phpunit --coverage-openclover ./clover.xml'
5+
clover(
6+
cloverReportDir: 'build/logs',
7+
cloverReportFileName: 'clover.xml',
8+
healthyTarget: [methodCoverage: 70, conditionalCoverage: 80, statementCoverage: 80],
9+
unhealthyTarget: [methodCoverage: 50, conditionalCoverage: 50, statementCoverage: 50],
10+
failingTarget: [methodCoverage: 0, conditionalCoverage: 0, statementCoverage: 0]
11+
)
12+
}
13+
}

0 commit comments

Comments
 (0)