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

CI: utilise l'image PHP de la registry Irstea pour les tests.

Showing with 4 additions and 8 deletions
+4 -8
......@@ -5,24 +5,20 @@ stages:
.test: &test
stage: test
tags: [docker]
image: php:${CI_JOB_NAME}-cli-alpine
image: gitlab-registry.irstea.fr/pole-is/docker/php:stretch-${CI_JOB_NAME}
variables:
COMPOSER_ALLOW_SUPERUSER: "1"
COMPOSER_CACHE_DIR: "${CI_PROJECT_DIR}/.composer-cache"
before_script:
- curl -sSL https://github.com/composer/composer/releases/download/1.8.4/composer.phar --output /usr/local/bin/composer
- chmod +x /usr/local/bin/composer
- apk update && apk add unzip git
- php -v
- composer -V
- composer global require hirak/prestissimo
script:
- composer install
- php -l src/*.php
- vendor/bin/php-cs-fixer fix --verbose --dry-run --using-cache=no
cache:
key: composer-cache
key: "composer-cache-${CI_COMMIT_REF_NAME}"
paths:
- /root/.composer/cache
- "${COMPOSER_CACHE_DIR}"
"7.0":
<<: *test
......
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