Select Git revision
.gitlab-ci.yml
.gitlab-ci.yml 4.92 KiB
#1.10.11
before_script:
- cd ${CI_PROJECT_DIR}
variables:
MYSQL_ROOT_PASSWORD: mysql
MYSQL_DATABASE: wptest
MYSQL_USER: mysql
MYSQL_PASSWORD: mysql
MYSQL_INNODB_LOG_BUFFER_SIZE: 32M
PHP_ERROR_REPORTING: E_ALL
COMPOSER_ALLOW_SUPERUSER: 1
GIT_STRATEGY: fetch
stages:
- tests
- pre-deploy
- deploy
.template: &job-test-template
stage: tests
coverage: '/^\s*Lines:\s*\d+.\d+\%/'
only:
- devel
- master
.template: &job-test-integration-template
<<: *job-test-template
services:
- mysql
script:
- ls -l
- php --version
- composer update --no-progress
- 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 update --no-progress
- composer phpunit-unit
.template: &job-deploy-template
image: wpdesknet/amazon-svn-deploy
stage: deploy
dependencies:
- build to deploy
retry: 2
when: manual
only:
- tags
code style test:
<<: *job-test-template
image: wpdesknet/phpunit-woocommerce:0-0
allow_failure: true
script:
- ls -l
- php --version
- composer phpcs
unit test lastest:
<<: *job-test-unit-template
image: wpdesknet/phpunit-woocommerce:0-0
only:
integration test lastest: