Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
plugin-template
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
wpdesk
Library
plugin-template
Commits
1910929c
Commit
1910929c
authored
7 years ago
by
Krzysztof Dyszczyk
Browse files
Options
Downloads
Patches
Plain Diff
Use of YAML templates
parent
215fbe07
No related branches found
No related tags found
1 merge request
!5
Use of YAML templates
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+22
-56
22 additions, 56 deletions
.gitlab-ci.yml
with
22 additions
and
56 deletions
.gitlab-ci.yml
+
22
−
56
View file @
1910929c
...
@@ -22,6 +22,21 @@ stages:
...
@@ -22,6 +22,21 @@ stages:
-
pre-deploy
-
pre-deploy
-
deploy
-
deploy
.template
:
&job-test-template
stage
:
tests
dependencies
:
-
build php
coverage
:
'
/^\s*Lines:\s*\d+.\d+\%/'
.template
:
&job-test-integration-template
<<
:
*job-test-template
services
:
-
mysql
script
:
-
ls -l
-
php --version
-
composer phpunit-integration
build php
:
build php
:
image
:
wpdesknet/phpunit-woocommerce:0-0
image
:
wpdesknet/phpunit-woocommerce:0-0
stage
:
build
stage
:
build
...
@@ -34,94 +49,45 @@ build php:
...
@@ -34,94 +49,45 @@ build php:
-
ls /usr/local/bin
-
ls /usr/local/bin
-
composer install --no-progress
-
composer install --no-progress
#build js:
# image: node:slim
# stage: build
# script:
# - cd app
# - git clone git@gitlab.com:wpdesk/plugins-tests.git
# - cd plugins-tests
# - npm install
# - grunt dev-chrome
code style test
:
code style test
:
<<
:
*job-test-template
image
:
wpdesknet/phpunit-woocommerce:0-0
image
:
wpdesknet/phpunit-woocommerce:0-0
stage
:
tests
allow_failure
:
true
allow_failure
:
true
dependencies
:
-
build php
script
:
script
:
-
ls -l
-
ls -l
-
php --version
-
php --version
-
composer phpcs
-
composer phpcs
unit test 0
:
unit test 0
:
<<
:
*job-test-template
image
:
wpdesknet/phpunit-woocommerce:0-0
image
:
wpdesknet/phpunit-woocommerce:0-0
stage
:
tests
dependencies
:
-
build php
coverage
:
'
/^\s*Lines:\s*\d+.\d+\%/'
script
:
script
:
-
ls -l
-
ls -l
-
php --version
-
php --version
-
composer phpunit-unit
-
composer phpunit-unit
integration test 0-0
:
integration test 0-0
:
<<
:
*job-test-integration-template
image
:
wpdesknet/phpunit-woocommerce:0-0
image
:
wpdesknet/phpunit-woocommerce:0-0
services
:
-
mysql
stage
:
tests
coverage
:
'
/^\s*Lines:\s*\d+.\d+\%/'
dependencies
:
-
build php
script
:
-
php --version
-
composer phpunit-integration
integration test 1-1
:
integration test 1-1
:
<<
:
*job-test-integration-template
image
:
wpdesknet/phpunit-woocommerce:1-1
image
:
wpdesknet/phpunit-woocommerce:1-1
services
:
-
mysql
stage
:
tests
coverage
:
'
/^\s*Lines:\s*\d+.\d+\%/'
dependencies
:
-
build php
script
:
-
php --version
-
composer phpunit-integration
integration test 2-2
:
integration test 2-2
:
<<
:
*job-test-integration-template
image
:
wpdesknet/phpunit-woocommerce:2-2
image
:
wpdesknet/phpunit-woocommerce:2-2
services
:
-
mysql
stage
:
tests
coverage
:
'
/^\s*Lines:\s*\d+.\d+\%/'
dependencies
:
-
build php
script
:
-
php --version
-
composer phpunit-integration
integration test 3-3
:
integration test 3-3
:
<<
:
*job-test-integration-template
image
:
wpdesknet/phpunit-woocommerce:3-3
image
:
wpdesknet/phpunit-woocommerce:3-3
services
:
-
mysql
stage
:
tests
coverage
:
'
/^\s*Lines:\s*\d+.\d+\%/'
dependencies
:
-
build php
script
:
script
:
-
php --version
-
php --version
-
phpunit --configuration phpunit-integration.xml
-
phpunit --configuration phpunit-integration.xml
integration test 4-3
:
integration test 4-3
:
<<
:
*job-test-integration-template
image
:
wpdesknet/phpunit-woocommerce:4-3
image
:
wpdesknet/phpunit-woocommerce:4-3
services
:
-
mysql
stage
:
tests
coverage
:
'
/^\s*Lines:\s*\d+.\d+\%/'
dependencies
:
-
build php
script
:
script
:
-
php --version
-
php --version
-
phpunit --configuration phpunit-integration.xml
-
phpunit --configuration phpunit-integration.xml
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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