mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-13 13:54:23 +00:00
upgrade gitlab-ci to run test only on php 7.2
This commit is contained in:
parent
5b4dcb9013
commit
08141fddee
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user