Skip to content
Snippets Groups Projects

CI 1.19

Merged Krzysztof Dyszczyk requested to merge feature/ci into devel
1 file
+ 10
10
Compare changes
  • Side-by-side
  • Inline
+ 10
10
variables:
variables:
WPDESK_CI_VERSION: 1.10.18
WPDESK_CI_VERSION: 1.10.19
MYSQL_ROOT_PASSWORD: mysql
MYSQL_ROOT_PASSWORD: mysql
MYSQL_DATABASE: wptest
MYSQL_DATABASE: wptest
MYSQL_USER: mysql
MYSQL_USER: mysql
@@ -121,14 +121,14 @@ churn metrics:
@@ -121,14 +121,14 @@ churn metrics:
- composer update --no-progress
- composer update --no-progress
- vendor/bin/churn run classes inc
- vendor/bin/churn run classes inc
code style test:
#code style test:
stage: tests
# stage: tests
image: wpdesknet/phpunit-woocommerce:0-0
# image: wpdesknet/phpunit-woocommerce:0-0
allow_failure: true
# allow_failure: true
script:
# script:
- echo ${WPDESK_CI_VERSION}
# - echo ${WPDESK_CI_VERSION}
- composer update --no-progress
# - composer update --no-progress
- vendor/bin/phpcs
# - vendor/bin/phpcs
unit test lastest:
unit test lastest:
<<: *job-test-unit-template-fast
<<: *job-test-unit-template-fast
@@ -270,7 +270,7 @@ build to deploy:
@@ -270,7 +270,7 @@ build to deploy:
- cp -rf /tmp/release/* ${CI_PROJECT_DIR}/release/${CI_PROJECT_NAME}
- cp -rf /tmp/release/* ${CI_PROJECT_DIR}/release/${CI_PROJECT_NAME}
- cd ${CI_PROJECT_DIR}/release/${CI_PROJECT_NAME}
- cd ${CI_PROJECT_DIR}/release/${CI_PROJECT_NAME}
- composer install --no-dev --no-progress --optimize-autoloader
- composer install --no-dev --no-progress --optimize-autoloader
- rm -rf build-coverage release tests docs .git .editorconfig .gitignore .gitlab-ci.yml apigen.neon
- rm -rf build-coverage release tests docs .git .editorconfig .gitignore .gitlab-ci.yml apigen.neon phpunit.xml acceptance test_soap.php .gitlab
- rm -rf composer.json composer.lock phpcs.xml.dist phpunit-integration.xml phpunit-unit.xml composer.phar wp-cli.phar
- rm -rf composer.json composer.lock phpcs.xml.dist phpunit-integration.xml phpunit-unit.xml composer.phar wp-cli.phar
- cd ../
- cd ../
- zip -r -q ../release.zip ./
- zip -r -q ../release.zip ./
Loading