Select Git revision
.gitlab-ci.yml
-
Krzysztof Dyszczyk authoredKrzysztof Dyszczyk authored
.gitlab-ci.yml 3.74 KiB
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
cache:
untracked: true
paths:
- vendor
stages:
- build
- tests
- pre-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:
image: wpdesknet/phpunit-woocommerce:0-0
stage: build
artifacts:
expire_in: 1 day
name: "dev vendor"
paths:
- vendor/
script:
- ls /usr/local/bin
- composer install --no-progress
code style test:
<<: *job-test-template
image: wpdesknet/phpunit-woocommerce:0-0
allow_failure: true
script:
- ls -l
- php --version
- composer phpcs
unit test 0:
<<: *job-test-template
image: wpdesknet/phpunit-woocommerce:0-0
script:
- ls -l
- php --version
- composer phpunit-unit
integration test 0-0:
<<: *job-test-integration-template