Another attempt to fix CI

This commit is contained in:
Timothy Warren 2020-03-12 10:24:21 -04:00
parent 6acee9ca7a
commit 622b435337
3 changed files with 21 additions and 16 deletions

View File

@ -10,15 +10,15 @@ php:
script:
- mkdir -p build/logs
- phpdbg -qrr -- vendor/bin/phpunit -c build
- php vendor/bin/phpunit -c build
after_script:
- CODECLIMATE_REPO_TOKEN=2cbddcebcb9256b3402867282e119dbe61de0b31039325356af3c7d72ed6d058 vendor/bin/test-reporter
#after_script:
# - CODECLIMATE_REPO_TOKEN=2cbddcebcb9256b3402867282e119dbe61de0b31039325356af3c7d72ed6d058 vendor/bin/test-reporter
matrix:
allow_failures:
- php: nightly
addons:
code_climate:
repo_token: 2cbddcebcb9256b3402867282e119dbe61de0b31039325356af3c7d72ed6d058
#addons:
# code_climate:
# repo_token: 2cbddcebcb9256b3402867282e119dbe61de0b31039325356af3c7d72ed6d058

24
Jenkinsfile vendored
View File

@ -1,6 +1,20 @@
pipeline {
agent none
stages {
stage('setup') {
agent {
docker {
image 'php-alpine'
args '-u root --privileged'
}
steps {
sh 'apk add --no-cache git'
sh 'curl -sS https://getcomposer.org/installer | php'
sh 'rm -f composer.lock'
sh 'php composer.phar install --ignore-platform-reqs'
}
}
}
stage('PHP 7.3') {
agent {
docker {
@ -9,10 +23,6 @@ pipeline {
}
}
steps {
sh 'apk add --no-cache git'
sh 'curl -sS https://getcomposer.org/installer | php'
sh 'rm -f composer.lock'
sh 'php composer.phar install --ignore-platform-reqs'
sh 'php ./vendor/bin/phpunit --colors=never'
}
}
@ -24,11 +34,7 @@ pipeline {
}
}
steps {
sh 'apk add --no-cache git php7-phpdbg'
sh 'curl -sS https://getcomposer.org/installer | php'
sh 'rm -f composer.lock'
sh 'php composer.phar install --ignore-platform-reqs'
sh 'phpdbg -qrr -- ./vendor/bin/phpunit --coverage-text --colors=never'
sh 'phpdbg -qrr -- ./vendor/bin/phpunit --colors=never'
step([
$class: 'CloverPublisher',
cloverReportDir: '',

View File

@ -18,7 +18,6 @@
<logging>
<log type="coverage-html" target="../coverage"/>
<log type="coverage-clover" target="logs/clover.xml"/>
<log type="junit" target="logs/junit.xml" />
</logging>
<php>
<server name="HTTP_USER_AGENT" value="Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:38.0) Gecko/20100101 Firefox/38.0" />