Skip to content
Snippets Groups Projects
Select Git revision
  • 9ebbae615ed02ab76b6904f5247cfa2c7472b743
  • master default protected
  • fix/woo-stubs-dir
  • default-packages
  • use-internal-packages
  • update-setup
  • feature/wpdesk-cs
  • 2.5.3
  • 2.5.2
  • 2.5.1
  • 2.5.0
  • 2.4.2
  • 2.4.1
  • 2.4.0
  • 2.3
  • 2.2.1
  • 2.2
  • 2.1
  • 2.0
  • 1.10.15
  • 1.10.12
  • 1.10.8
  • 1.10.7
  • 1.10.6
  • 1.10.5
  • 1.10.3
  • 1.10.2
27 results

.gitlab-ci.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}