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

CI: simplification de la configuration.

Showing with 19 additions and 36 deletions
+19 -36
cache: .defaults: &defaults
key: "$CI_COMMIT_REF_NAME-$CI_JOB_NAME" tags: [ docker ]
paths: image: isdevtools.irstea.fr/poleis/php-analysis:7.1
- $HOME/.composer/cache
- vendor/
variables:
COMPOSER_NO_INTERACTION: "1"
COMPOSER_ALLOW_SUPERUSER: "1"
S6_TARGET: none
DEBIAN_FRONTEND: noninteractive
phpunit: phpunit:
stage: test <<: *defaults
tags: [docker]
image: isdevtools.irstea.fr/poleis/php-apache2:stretch-7.1
before_script: before_script:
- phpenmod pdo_sqlite curl - composer install --prefer-dist --no-progress --no-suggest
- composer update --prefer-dist --no-progress --ansi --no-suggest --prefer-stable
script: script:
- vendor/bin/phpunit - vendor/bin/phpunit
cache:
.static-analysis: &static-analysis key: "$CI_COMMIT_REF_NAME"
stage: test paths:
tags: [docker] - vendor
image: isdevtools.irstea.fr/poleis/php-analysis:7.1
phploc: phploc:
<<: *static-analysis <<: *defaults
script: script: phploc --exclude=vendor .
- phploc --exclude=vendor .
lint: lint:
<<: *static-analysis <<: *defaults
script: script: parallel-lint -j $(nproc) --exclude vendor .
- parallel-lint -j $(nproc) --exclude vendor .
phpcs: phpcs:
<<: *static-analysis <<: *defaults
script: script: phpcs --colors --parallel=$(nproc) .
- phpcs --colors --parallel=$(nproc) .
allow_failure: true allow_failure: true
phpcpd: phpcpd:
<<: *static-analysis <<: *defaults
script: script: phpcpd --exclude=vendor --fuzzy .
- phpcpd --exclude=vendor --fuzzy .
phpmd: phpmd:
<<: *static-analysis <<: *defaults
script: script: phpmd . text ./phpmd.xml --suffixes=php
- phpmd . text ./phpmd.xml --suffixes=php
allow_failure: true allow_failure: true
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