Skip to content
Snippets Groups Projects
Commit 0d7dab8b authored by Grzegorz Rola's avatar Grzegorz Rola
Browse files

Merge branch 'devel-oldphp' into 'devel'

Devel oldphp

See merge request wpdesk/plugin-template!13
parents 80286a8c 45ccec75
No related branches found
No related tags found
1 merge request!13Devel oldphp
#1.10.7 #1.10.8
before_script: before_script:
- cd ${CI_PROJECT_DIR} - cd ${CI_PROJECT_DIR}
...@@ -35,8 +35,24 @@ stages: ...@@ -35,8 +35,24 @@ stages:
- mysql - mysql
script: script:
- ls -l - ls -l
- php --version
- if [[ -f tests/integration/prepare.sh ]]; then sh tests/integration/prepare.sh; fi - if [[ -f tests/integration/prepare.sh ]]; then sh tests/integration/prepare.sh; fi
- composer phpunit-integration
.template: &job-test-unit-template
<<: *job-test-template
script:
- ls -l
- php --version
- composer phpunit-unit
.template: &job-test-integration-oldphp-template
<<: *job-test-integration-template
script:
- ls -l
- php --version - php --version
- composer update --no-progress
- if [[ -f tests/integration/prepare.sh ]]; then sh tests/integration/prepare.sh; fi
- composer phpunit-integration - composer phpunit-integration
.template: &job-deploy-template .template: &job-deploy-template
...@@ -71,38 +87,30 @@ code style test: ...@@ -71,38 +87,30 @@ code style test:
- composer phpcs - composer phpcs
unit test 0: unit test 0:
<<: *job-test-template <<: *job-test-unit-template
image: wpdesknet/phpunit-woocommerce:0-0
script:
- ls -l
- php --version
- composer phpunit-unit
integration test 0-0: integration test lastest:
<<: *job-test-integration-template <<: *job-test-integration-template
image: wpdesknet/phpunit-woocommerce:0-0
integration test 1-1: integration test php7-1 wc-1:
<<: *job-test-integration-template <<: *job-test-integration-template
image: wpdesknet/phpunit-woocommerce:1-1 image: wpdesknet/phpunit-woocommerce:1-1
integration test 2-2: integration test php7 wc-2:
<<: *job-test-integration-template <<: *job-test-integration-template
image: wpdesknet/phpunit-woocommerce:2-2 image: wpdesknet/phpunit-woocommerce:2-2
integration test 3-3: integration test php-7 wc-3:
<<: *job-test-integration-template <<: *job-test-integration-template
image: wpdesknet/phpunit-woocommerce:3-3 image: wpdesknet/phpunit-woocommerce:2-3
script:
- php --version
- phpunit --configuration phpunit-integration.xml
integration test 4-3: integration test php5-6:
<<: *job-test-integration-template <<: *job-test-integration-oldphp-template
image: wpdesknet/phpunit-woocommerce:4-3 image: wpdesknet/phpunit-woocommerce:3-0
script:
- php --version integration test php5-5:
- phpunit --configuration phpunit-integration.xml <<: *job-test-integration-oldphp-template
image: wpdesknet/phpunit-woocommerce:4-0
apigen docs: apigen docs:
image: image:
...@@ -135,7 +143,7 @@ pages: ...@@ -135,7 +143,7 @@ pages:
- tags - tags
build to deploy: build to deploy:
image: wpdesknet/phpunit-woocommerce:0-0 image: wpdesknet/phpunit-woocommerce:4-0
stage: pre-deploy stage: pre-deploy
artifacts: artifacts:
expire_in: 1 month expire_in: 1 month
......
...@@ -10,17 +10,14 @@ ...@@ -10,17 +10,14 @@
"php": ">=5.5" "php": ">=5.5"
}, },
"require-dev": { "require-dev": {
"phpunit/phpunit": "^6", "phpunit/phpunit": "*",
"wp-coding-standards/wpcs": "^0.14.1", "wp-coding-standards/wpcs": "^0.14.1",
"squizlabs/php_codesniffer": "^3.0.2", "squizlabs/php_codesniffer": "^3.0.2",
"mockery/mockery": "^1.0", "mockery/mockery": "*",
"10up/wp_mock": "^0.3", "10up/wp_mock": "*",
"wimg/php-compatibility": "^8" "wimg/php-compatibility": "^8"
}, },
"autoload-dev": { "autoload-dev": {
"psr-4": {
"JpkTest\\": "tests"
}
}, },
"scripts": { "scripts": {
"test": "echo composer is alive", "test": "echo composer is alive",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment