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
file-upload-bundle
Commits
11118452
Commit
11118452
authored
Nov 24, 2017
by
Raidelet Nicolas
Committed by
Guillaume Perréal
Jul 24, 2018
Browse files
maj ci gitlab
parent
1e46ba70
Changes
1
Show whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
11118452
...
...
@@ -3,39 +3,42 @@
tags
:
[
docker
]
image
:
isdevtools.irstea.fr/poleis/php-analysis:7.1
phpunit
:
<<
:
*defaults
before_script
:
-
composer install --prefer-dist --no-progress --no-suggest
script
:
-
vendor/bin/phpunit
cache
:
key
:
"
$CI_COMMIT_REF_NAME"
paths
:
-
vendor
phploc
:
<<
:
*defaults
script
:
phploc
--exclude=vendor .
script
:
phploc
src tests
lint
:
<<
:
*defaults
script
:
parallel-lint -j $(nproc) --exclude vendor .
phpcs
:
<<
:
*defaults
script
:
phpcs --colors --parallel=$(nproc) --standard=/rules/phpcs.xml .
allow_failure
:
true
script
:
-
parallel-lint -j $(nproc) src tests
-
twig-lint lint src
-
yaml-lint src
php-cs-fixer
:
<<
:
*defaults
script
:
php-cs-fixer fix --dry-run --
config=/rules/php-cs-fixer.php
script
:
php-cs-fixer fix --dry-run --
verbose
phpcpd
:
<<
:
*defaults
script
:
phpcpd --
exclude=vendor --fuzzy .
script
:
phpcpd --
fuzzy src tests
phpmd
:
.with-vendors
:
&with-vendors
<<
:
*defaults
script
:
phpmd . text /rules/phpmd.xml --suffixes=php
allow_failure
:
true
before_script
:
-
composer install --prefer-dist --no-progress --no-suggest
cache
:
key
:
"
$CI_COMMIT_REF_NAME"
paths
:
-
/composer/cache
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
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