From 08141fddeef107fa32b8e1955e4dd591967e0469 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Tue, 3 Apr 2018 12:49:08 +0200 Subject: [PATCH] upgrade gitlab-ci to run test only on php 7.2 --- .gitlab-ci.yml | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 840991582..b1af21fb0 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -17,11 +17,6 @@ stages: - deploy-doc -test:php-7: - stage: test - <<: *test_definition - image: chill/ci-image:php-7 - script: vendor/bin/phpunit test:php-7.1: stage: test @@ -29,11 +24,17 @@ test:php-7.1: image: chill/ci-image:php-7.1 script: vendor/bin/phpunit +test:php-7.2: + stage: test + <<: *test_definition + image: chill/ci-image:php-7.2 + script: vendor/bin/phpunit + # deploy documentation api-doc-build: stage: build-doc environment: api-doc - image: chill/ci-image:php-7 + image: chill/ci-image:php-7.2 before_script: - mkdir api-doc script: apigen generate --destination api-doc/$CI_BUILD_REF_NAME/$CI_PROJECT_NAME @@ -62,7 +63,7 @@ api-doc-deploy: deploy-packagist: stage: deploy - image: chill/ci-image:php-7 + image: chill/ci-image:php-7.2 before_script: # test that PACKAGIST USERNAME and PACKAGIST_TOKEN variable are set - if [ -z ${PACKAGIST_USERNAME+x} ]; then echo "Please set PACKAGIST_USERNAME variable"; exit -1; fi