Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Pôle IS
Bundles Symfony 2
api-metadata
Commits
0151b7f7
Commit
0151b7f7
authored
Jul 05, 2019
by
Guillaume Perréal
Browse files
CI: utilisation de pole-is/tools/ci-config 1.2.0.
parent
13c14335
Changes
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
0151b7f7
stages
:
-
vendor
-
test
include
:
-
project
:
pole-is/tools/ci-config
ref
:
"
1.2.0"
file
:
/php-package-ci.yml
.php
:
&php
tags
:
-
docker
variables
:
DEBIAN_FRONTEND
:
noninteractive
COMPOSER_CACHE_DIR
:
"
$CI_PROJECT_DIR/.composer-cache"
PHP_VERSION
:
"
7.1"
image
:
gitlab-registry.irstea.fr/pole-is/docker/php:stretch-${PHP_VERSION}
.php
:
before_script
:
-
apt-get update -yq && apt-get install -yq php${PHP_VERSION}-sqlite
-
php -v
-
composer -V
vendor
:
<<
:
*php
stage
:
vendor
dependencies
:
[]
script
:
-
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_CACHE_DIR"
.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:composer-validate: { <<
:
*php-test
}
test:composer-require: { <<
:
*php-test
}
test:security: { <<
:
*php-test
}
test:console: { <<
:
*php-test
}
test:console:
extends
:
.php-test
test:phpunit:
<<
:
*php-test
script
:
-
composer test:phpunit -- --colors=never
coverage
:
'
/^\s*Lines:\s*\d+.\d+\%/'
artifacts
:
reports
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment