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: ...@@ -5,24 +5,20 @@ stages:
.test: &test .test: &test
stage: test stage: test
tags: [docker] tags: [docker]
image: php:${CI_JOB_NAME}-cli-alpine image: gitlab-registry.irstea.fr/pole-is/docker/php:stretch-${CI_JOB_NAME}
variables: variables:
COMPOSER_ALLOW_SUPERUSER: "1" COMPOSER_CACHE_DIR: "${CI_PROJECT_DIR}/.composer-cache"
before_script: 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 - php -v
- composer -V - composer -V
- composer global require hirak/prestissimo
script: script:
- composer install - composer install
- php -l src/*.php - php -l src/*.php
- vendor/bin/php-cs-fixer fix --verbose --dry-run --using-cache=no - vendor/bin/php-cs-fixer fix --verbose --dry-run --using-cache=no
cache: cache:
key: composer-cache key: "composer-cache-${CI_COMMIT_REF_NAME}"
paths: paths:
- /root/.composer/cache - "${COMPOSER_CACHE_DIR}"
"7.0": "7.0":
<<: *test <<: *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