Commit ea24f97b authored by Guillaume Perréal's avatar Guillaume Perréal
Browse files

Améliore les tests en CI sur PHP 7.1.

Showing with 8 additions and 4 deletions
+8 -4
......@@ -2,29 +2,33 @@ stages:
- test
- deploy
.test: &test
.test:
stage: test
tags: [docker]
image: gitlab-registry.irstea.fr/pole-is/docker/php:buster-${CI_JOB_NAME}
variables:
COMPOSER_CACHE_DIR: "${CI_PROJECT_DIR}/.composer-cache"
COMPOSER_OPTS: ""
before_script:
- php -v
- composer -V
script:
- composer install
- composer install $COMPOSER_OPTS
- php -l src/*.php
- vendor/bin/php-cs-fixer fix --verbose --dry-run --using-cache=no
- vendor/bin/phpunit
cache:
key: "composer-cache-${CI_COMMIT_REF_NAME}"
paths:
- "${COMPOSER_CACHE_DIR}"
"7.1":
<<: *test
extends: .test
variables:
COMPOSER_OPTS: "--prefer-lowest --prefer-stable"
"7.3":
<<: *test
extends: .test
deploy:
stage: deploy
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment