Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
composer-phpcodesniffer-standards-plugin
Manage
Activity
Members
Labels
Plan
Issues
8
Issue boards
Milestones
Code
Merge requests
2
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Daniel Hürtgen
composer-phpcodesniffer-standards-plugin
Commits
19497218
There was a problem fetching the pipeline stages.
Commit
19497218
authored
7 years ago
by
Daniel Hürtgen
Browse files
Options
Downloads
Patches
Plain Diff
FEATURE: Optimize gitlab pipeline
parent
126bcc97
1 merge request
!44
TASK: Resolve "Implement tests"
Pipeline
#351
passed with stages
in 6 minutes and 44 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+34
-19
34 additions, 19 deletions
.gitlab-ci.yml
with
34 additions
and
19 deletions
.gitlab-ci.yml
+
34
−
19
View file @
19497218
stages
:
-
lint
-
test
cache
:
paths
:
-
vendor/
before_script
:
-
apt-get update; apt-get install -y unzip
-
composer install --optimize-autoloader --no-interaction --no-ansi --prefer-dist
lint:coding-guideline
:
&PHP-LINTING
image
:
tetraweb/php:7.0
stage
:
test
script
:
-
mkdir result
-
./vendor/bin/phpcs -s -n --report-full=result/phpcs-full.txt --report-diff=result/phpcs-diff.txt --report-summary=result/phpcs-summary.txt
.lint
:
&lint
image
:
composer
stage
:
lint
before_script
:
-
apk --no-cache add parallel
-
php -v
-
composer --no-ansi self-update
-
composer --no-ansi --version
-
composer install --optimize-autoloader --classmap-authoritative --no-interaction --prefer-dist --no-ansi
artifacts
:
when
:
on_failure
paths
:
-
result
lint
:
<<
:
*lint
script
:
-
find . -name \*.php ! -path "./vendor/*" | parallel --gnu php -d display_errors=stderr -l {} > /dev/null \;
lint:coding-guideline
:
<<
:
*lint
script
:
-
mkdir result
-
./vendor/bin/phpcs -s -n --report-full=result/phpcs-full.txt --report-diff=result/phpcs-diff.txt --report-summary=result/phpcs-summary.txt
lint:php-mass-detection
:
<<
:
*
PHP-LINTING
<<
:
*
lint
script
:
-
mkdir result
-
./vendor/bin/phpmd src text phpmd.xml | tee result/phpmd.txt
test:5.3
:
&PHP-UNITTESTING
image
:
tetraweb/php:5.3
.test
:
&test
stage
:
test
tags
:
-
docker
variables
:
TIMEZONE
:
"
Europe/Berlin"
WITH_XDEBUG
:
"
true"
before_script
:
-
apt-get update; apt-get install -y unzip
-
composer install --optimize-autoloader --no-interaction --no-ansi --prefer-dist
script
:
-
./vendor/bin/phpunit --coverage-text --colors=never
test:5.3
:
<<
:
*test
image
:
tetraweb/php:5.3
test:5.4
:
<<
:
*
PHP-UNITTESTING
<<
:
*
test
image
:
tetraweb/php:5.4
test:5.5
:
<<
:
*
PHP-UNITTESTING
<<
:
*
test
image
:
tetraweb/php:5.5
test:5.6
:
<<
:
*
PHP-UNITTESTING
<<
:
*
test
image
:
tetraweb/php:5.6
test:7.0
:
<<
:
*
PHP-UNITTESTING
<<
:
*
test
image
:
tetraweb/php:7.0
test:7.1
:
<<
:
*
PHP-UNITTESTING
<<
:
*
test
image
:
tetraweb/php:7.1
test:latest
:
<<
:
*
PHP-UNITTESTING
<<
:
*
test
image
:
tetraweb/php:latest
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment