Skip to content
Snippets Groups Projects
Select Git revision
  • 9b260ab89219955165ba1850cc9b32b55f295240
  • master default protected
  • feat/npm-publish
  • feat/demo-deploy
  • change-demo-deploy
  • remove-smoke
  • feat/acceptance-tests
  • feature/deploy-composer.json
  • feature/mysql-bin-logs
  • skip-codecept-for-libs
  • include-composer-json
  • exclude-wp-assets
  • update_codecept_image
  • fix/silenced-copy
  • remove-free-translations
  • codeception-with-optional-step
  • improve-parallelization
  • linter-exit
  • change-images
  • fix/linter
  • globally-raise-mem-limit
  • no-symlink2
22 results

gitlab-ci-shop.yml

Blame
  • .gitlab-ci.yml 9.34 KiB
    variables:
      WPDESK_CI_VERSION: 1.10.19
      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
      ACCEPTANCE_ERROR_PATH: ${CI_PROJECT_DIR}/acceptance
    
    stages:
      - tools
      - tests
      - pre-deploy
      - deploy
    
    .template: &job-test-template
      stage: tests
      coverage: '/^\s*Lines:\s*\d+.\d+\%/'
    
    .template: &job-test-integration-template
      <<: *job-test-template
      services:
        - mysql:5.6
      script:
        - echo ${WPDESK_CI_VERSION}
        - ls -l
        - php --version
        - cat /tmp/wordpress-develop/src/wp-includes/version.php
        - cat /tmp/woocommerce/woocommerce.php
        - composer update --no-progress
        - if [[ -f tests/integration/prepare.sh ]]; then sh tests/integration/prepare.sh; fi
        - vendor/bin/phpunit --configuration phpunit-integration.xml --coverage-text --colors=never
      only:
        - tags
    
    .template: &job-test-integration-template-fast
      <<: *job-test-integration-template
      script:
        - echo ${WPDESK_CI_VERSION}
        - ls -l
        - php --version
        - cat /tmp/wordpress-develop/src/wp-includes/version.php
        - cat /tmp/woocommerce/woocommerce.php
        - composer update --no-progress
        - if [[ -f tests/integration/prepare.sh ]]; then sh tests/integration/prepare.sh; fi
        - vendor/bin/phpunit --configuration phpunit-integration.xml --no-coverage
      except:
        - tags
      only:
    
    .template: &job-test-unit-template
      <<: *job-test-template
      script:
        - echo ${WPDESK_CI_VERSION}
        - ls -l
        - php --version
        - cat /tmp/wordpress-develop/src/wp-includes/version.php
        - cat /tmp/woocommerce/woocommerce.php
        - composer update --no-progress
        - vendor/bin/phpunit --configuration phpunit-unit.xml --coverage-text --colors=never
      only:
        - tags
    
    .template: &job-test-unit-template-fast
      <<: *job-test-unit-template
      script:
        - echo ${WPDESK_CI_VERSION}