Another attempt to fix CI

This commit is contained in:
Timothy Warren 2020-03-12 10:24:21 -04:00
parent 591d7bb4bc
commit db68f983bf
3 changed files with 21 additions and 16 deletions

View File

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

24
Jenkinsfile vendored
View File

@ -1,6 +1,20 @@
pipeline { pipeline {
agent none agent none
stages { 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') { stage('PHP 7.3') {
agent { agent {
docker { docker {
@ -9,10 +23,6 @@ pipeline {
} }
} }
steps { 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' sh 'php ./vendor/bin/phpunit --colors=never'
} }
} }
@ -24,11 +34,7 @@ pipeline {
} }
} }
steps { steps {
sh 'apk add --no-cache git php7-phpdbg' sh 'phpdbg -qrr -- ./vendor/bin/phpunit --colors=never'
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'
step([ step([
$class: 'CloverPublisher', $class: 'CloverPublisher',
cloverReportDir: '', cloverReportDir: '',

View File

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