From a4cf69e38c9447bbd8959d52ab2a4d7a50a5b306 Mon Sep 17 00:00:00 2001 From: Hecht Date: Wed, 7 Apr 2021 22:30:28 +0200 Subject: [PATCH] Added Jenkinksfile --- Jenkinksfile | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 Jenkinksfile diff --git a/Jenkinksfile b/Jenkinksfile new file mode 100644 index 0000000..9e21bf3 --- /dev/null +++ b/Jenkinksfile @@ -0,0 +1,26 @@ +pipeline { + agent any + stages { + stage('Build') { + agent any + steps { + sh 'composer install' + } + } + stage('PHP CS Fixer') { + steps { + sh 'php-cs-fixer fix --dry-run --no-interaction --diff -vvv src/' + } + } + stage('Test') { + steps { + sh 'php ./bin/phpunit --coverage-clover=\'reports/coverage/coverage.xml\' --coverage-html=\'reports/coverage\'' + } + } + stage('Coverage') { + steps { + step([$class: 'CloverPublisher'undefined cloverReportDir: '/reports/coverage'undefined cloverReportFileName: 'coverage.xml']) + } + } + } +} \ No newline at end of file