From 61ca4300d4defbe9f7587809df2daaf1160570b9 Mon Sep 17 00:00:00 2001 From: Timothy J Warren Date: Tue, 17 Mar 2020 15:15:20 -0400 Subject: [PATCH] Simplify Jenkins build again --- Jenkinsfile | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index a290b9a5..7fb02a70 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -5,6 +5,9 @@ pipeline { agent any steps { 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') { @@ -16,9 +19,6 @@ pipeline { } steps { 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' } } @@ -31,9 +31,6 @@ pipeline { } steps { 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' } } @@ -46,9 +43,6 @@ pipeline { } steps { 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' } }