Skip to content
Snippets Groups Projects
Select Git revision
  • e15f41faecca2581180f0248c93281189f45e7fd
  • master default protected
  • bugfix/wordpress-review
  • bugfix/prevent-error-notice
  • remove-arrow
  • feature/update-message
  • feature/minimum-plugin-version-check-demo1
  • feature/plugin-name
  • 3.7.1
  • 3.7.0
  • 3.6.3
  • 3.6.2
  • 3.6.1
  • 3.6.0
  • 3.6.0-beta3
  • 3.6.0-beta2
  • 3.6.0-beta1
  • 3.5.2
  • 3.5.1
  • 3.5.0
  • 3.4.0
  • 3.3.0
  • 3.2.8
  • 3.2.7
  • 3.2.6
  • 3.2.5
  • 3.2.4
  • 3.2.3
28 results

.gitlab-ci.yml

Blame
  • .gitlab-ci.yml 4.12 KiB
    variables:
      WPDESK_CI_VERSION: 1.10.19-library
      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
    
    .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}
        - ls -l
        - php --version