Skip to content
Snippets Groups Projects
Select Git revision
  • 413e6cb6f6151c68e294ac58bcfbd2fd14f50d11
  • master default protected
  • feat/woo-template
  • organize-tests
  • feat/add-show-rendered-method
  • devel
  • 2.1.0
  • 2.0.0
  • 1.1.0
  • 1.0.2
  • 1.0.1
  • 1.0
12 results

.gitlab-ci.yml

Blame
  • .gitlab-ci.yml 9.29 KiB
    variables:
      WPDESK_CI_VERSION: 1.10.18
      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}