Attempt to clear dependencies on each step

This commit is contained in:
Timothy Warren 2020-03-17 11:25:17 -04:00
parent 40bc7a34e1
commit 2222d48f23

12
Jenkinsfile vendored
View File

@ -5,9 +5,6 @@ pipeline {
agent any agent any
steps { steps {
sh 'curl -sS https://getcomposer.org/installer | php' sh 'curl -sS https://getcomposer.org/installer | php'
sh 'rm -rf ./vendor'
sh 'rm -f composer.lock'
sh 'php composer.phar install --ignore-platform-reqs'
} }
} }
stage('PHP 7.3') { stage('PHP 7.3') {
@ -19,6 +16,9 @@ pipeline {
} }
steps { steps {
sh 'apk add --no-cache git' sh 'apk add --no-cache git'
sh 'rm -rf ./vendor'
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'
} }
} }
@ -31,6 +31,9 @@ pipeline {
} }
steps { steps {
sh 'apk add --no-cache git' sh 'apk add --no-cache git'
sh 'rm -rf ./vendor'
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'
} }
} }
@ -43,6 +46,9 @@ pipeline {
} }
steps { steps {
sh 'apk add --no-cache git' sh 'apk add --no-cache git'
sh 'rm -rf ./vendor'
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'
} }
} }