diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 5a232eac3373349d1331f1db02e976e1c899d190..51f703715b691b2dad339ea86db20f0562efd132 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,5 +1,5 @@ variables: - WPDESK_CI_VERSION: 1.10.12 + WPDESK_CI_VERSION: 1.10.14 MYSQL_ROOT_PASSWORD: mysql MYSQL_DATABASE: wptest MYSQL_USER: mysql @@ -30,7 +30,7 @@ stages: - cat /tmp/woocommerce/woocommerce.php - composer update --no-progress - if [[ -f tests/integration/prepare.sh ]]; then sh tests/integration/prepare.sh; fi - - composer phpunit-integration + - vendor/bin/phpunit --configuration phpunit-integration.xml --coverage-text --colors=never only: - tags @@ -44,7 +44,7 @@ stages: - cat /tmp/woocommerce/woocommerce.php - composer update --no-progress - if [[ -f tests/integration/prepare.sh ]]; then sh tests/integration/prepare.sh; fi - - composer phpunit-integration-fast + - vendor/bin/phpunit --configuration phpunit-integration.xml --no-coverage except: - tags only: @@ -58,7 +58,7 @@ stages: - cat /tmp/wordpress-develop/src/wp-includes/version.php - cat /tmp/woocommerce/woocommerce.php - composer update --no-progress - - composer phpunit-unit + - vendor/bin/phpunit --configuration phpunit-unit.xml --coverage-text --colors=never only: - tags @@ -71,7 +71,7 @@ stages: - cat /tmp/wordpress-develop/src/wp-includes/version.php - cat /tmp/woocommerce/woocommerce.php - composer update --no-progress - - composer phpunit-unit-fast + - vendor/bin/phpunit --configuration phpunit-unit.xml --no-coverage except: - tags only: @@ -98,7 +98,7 @@ code style test: script: - echo ${WPDESK_CI_VERSION} - composer update --no-progress - - composer phpcs + - vendor/bin/phpcs unit test lastest: <<: *job-test-unit-template-fast @@ -188,7 +188,7 @@ build to deploy: - cp -rf ${CI_PROJECT_DIR}/* /tmp/release - cp -rf /tmp/release/* ${CI_PROJECT_DIR}/release/${CI_PROJECT_NAME} - cd ${CI_PROJECT_DIR}/release/${CI_PROJECT_NAME} - - composer install --no-dev --no-progress + - composer install --no-dev --no-progress --optimize-autoloader - rm -rf build-coverage release tests docs .git .editorconfig .gitignore .gitlab-ci.yml apigen.neon \ composer.json composer.lock phpcs.xml.dist phpunit-integration.xml phpunit-unit.xml composer.phar wp-cli.phar - cd ../