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

Utilise ci-config 2.0.0 pour l'intégration continue.

Showing with 26 additions and 59 deletions
+26 -59
stages: include:
- without-vendors - project: pole-is/tools/ci-config
- with-vendors ref: "2.0.0"
file: /php-package-ci.yml
.without-vendors: &without-vendors - project: pole-is/tools/ci-config
tags: [ docker ] ref: "2.0.0"
stage: without-vendors file: /satis-ci.yml
image: isdevtools.irstea.fr/poleis/php-analysis:7.1
dependencies: []
phploc: stages:
<<: *without-vendors - vendor
script: phploc src tests - test
- deploy
lint:
<<: *without-vendors
script:
- parallel-lint -j $(nproc) src tests
- twig-lint lint src
- yaml-lint src
php-cs-fixer:
<<: *without-vendors
script: php-cs-fixer fix --dry-run --verbose
phpcpd: # Personnalisation des tâches par défaut:
<<: *without-vendors
script: phpcpd --fuzzy src tests
install-vendors: .php:
<<: *without-vendors
image: isdevtools.irstea.fr/poleis/php-apache2:stretch-7.1
variables: variables:
S6_TARGET: none DEBIAN_CODENAME: "stretch"
COMPOSER_NO_INTERACTION: "1" PHP_VERSION: "7.1"
test:phpunit:
# variables:
# PHP_IMAGE: gitlab-registry.irstea.fr/pole-is/docker/php/ci/panther
script: script:
- phpenmod iconv - composer test:phpunit -- --coverage-text --coverage-html=reports/coverage --log-junit=reports/junit.xml
- composer validate
- composer install -n --prefer-dist --no-suggest --no-progress --no-scripts --ignore-platform-reqs
cache:
key: "$CI_COMMIT_REF_NAME-composer-cache"
paths:
- /composer/cache
artifacts: artifacts:
name: vendors name: reports
expose_as: "phpunit reports"
when: always
paths: paths:
- vendor - reports/
expire_in: "1 day" reports:
junit: reports/junit.xml
.with-vendors: &with-vendors
<<: *without-vendors
stage: with-vendors
dependencies: [ install-vendors ]
phpunit:
<<: *with-vendors
script: vendor/bin/phpunit
composer-require-checker:
<<: *with-vendors
script: composer-require-checker
phpmd:
<<: *with-vendors
script: phpmd src,tests text ./phpmd-ruleset.xml --suffixes=php
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