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

Configuration de l'intégration continue.

No related merge requests found
Showing with 54 additions and 0 deletions
+54 -0
stages:
- vendor
- test
.php: &php
tags:
- docker
image: php:${PHP_VERSION}-cli-stretch
variables:
COMPOSER_HOME: "$CI_PROJECT_DIR/.composer"
COMPOSER_NO_INTERACTION: "1"
COMPOSER_ALLOW_SUPERUSER: "1"
COMPOSER_INSTALLER_COMMITID: "5eb0614d3fa7130b363698d3dca52c619b463615"
PHP_VERSION: "7.1"
before_script:
- apt-get update -yqq && apt-get install -yqq unzip git-core
- php -v
- curl -sSfL https://raw.githubusercontent.com/composer/getcomposer.org/${COMPOSER_INSTALLER_COMMITID}/web/installer | php -- --install-dir=/usr/local/bin --filename=composer --quiet
- composer -V
vendor:
<<: *php
stage: vendor
dependencies: []
script:
- composer global require hirak/prestissimo --quiet
- composer install --no-suggest --no-progress
artifacts:
name: "$CI_JOB_NAME"
paths:
- vendor
expire_in: 4 hours
cache:
key: "$CI_BUILD_REF_NAME-composer"
paths:
- "$COMPOSER_HOME"
.php-test: &php-test
<<: *php
stage: test
dependencies:
- vendor
script: composer ${CI_JOB_NAME}
phploc: { <<: *php-test }
test:lint: { <<: *php-test }
test:phpcpd: { <<: *php-test }
test:phpmd: { <<: *php-test }
test:phpstan: { <<: *php-test }
test:phpunit: { <<: *php-test }
test:composer-validate: { <<: *php-test }
test:composer-require: { <<: *php-test }
test:security: { <<: *php-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