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
e4d5f8a8
Commit
e4d5f8a8
authored
Jul 25, 2018
by
Guillaume Perréal
Browse files
CI: n'installe qu'une seule fois les vendors.
parent
2332a043
Changes
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
e4d5f8a8
stages
:
-
without-vendors
-
with-vendors
.
defaults
:
&default
s
.
without-vendors
:
&without-vendor
s
tags
:
[
docker
]
stage
:
without-vendors
image
:
isdevtools.irstea.fr/poleis/php-analysis:7.1
dependencies
:
[]
phploc
:
<<
:
*
default
s
<<
:
*
without-vendor
s
script
:
phploc src tests
lint
:
<<
:
*
default
s
<<
:
*
without-vendor
s
script
:
-
parallel-lint -j $(nproc) src tests
-
twig-lint lint src
-
yaml-lint src
php-cs-fixer
:
<<
:
*
default
s
<<
:
*
without-vendor
s
script
:
php-cs-fixer fix --dry-run --verbose
phpcpd
:
<<
:
*
default
s
<<
:
*
without-vendor
s
script
:
phpcpd --fuzzy src tests
.with-vendors
:
&with-vendors
<<
:
*defaults
before_script
:
-
composer install --prefer-dist --no-progress --no-suggest
install-vendors
:
<<
:
*without-vendors
image
:
isdevtools.irstea.fr/poleis/php-apache2:stretch-7.1
variables
:
S6_TARGET
:
none
COMPOSER_NO_INTERACTION
:
"
1"
script
:
-
phpenmod iconv
-
composer validate
-
composer install -n --prefer-dist --no-suggest --no-progress --no-scripts --ignore-platform-reqs
cache
:
key
:
"
$CI_COMMIT_REF_NAME"
key
:
"
$CI_COMMIT_REF_NAME
-composer-cache
"
paths
:
-
/composer/cache
artifacts
:
name
:
vendors
paths
:
-
vendor
expire_in
:
"
1
day"
.with-vendors
:
&with-vendors
<<
:
*without-vendors
stage
:
with-vendors
dependencies
:
[
install-vendors
]
phpunit
:
<<
:
*with-vendors
...
...
@@ -42,3 +63,4 @@ 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