Skip to content
Snippets Groups Projects
Select Git revision
  • 09e00a7cabbbdedeec745de2c0cfebce27f19e83
  • 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-1.2.yml

Blame
  • gitlab-ci-1.2.yml 15.13 KiB
    variables:
      WPDESK_CI_VERSION: "1.2"
      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"
      CONTRIBUTORS: "wpdesk,dyszczo,grola,potreb"
      MINIMAL_WP_TESTED_UP: "5.3"
      MINIMAL_WC_TESTED_UP: "3.9"
    
    stages:
      - prepare
      - tools
      - tests
      - pre-deploy
      - deploy
    
    .template: &job-test-template
      cache:
        key: ${CI_PROJECT_NAME}-vendor
        paths:
          - vendor/
      stage: tests
      coverage: '/^\s*Lines:\s*\d+.\d+\%/'
      artifacts:
        reports:
          junit: tmp_artifacts/report.xml
    
    .template: &job-test-integration-template
      <<: *job-test-template
      dependencies:
        - prepare prefixed vendor
      services:
        - mysql:5.6
      before_script:
        - export DEPENDENT_PLUGINS_DIR=${CI_PROJECT_DIR}/tests/dependent_plugins
        - echo ${WPDESK_CI_VERSION}
        - ls -l
        - php --version
        - cat /tmp/wordpress-develop/src/wp-includes/version.php
        - cat /tmp/woocommerce/woocommerce.php
        - COMPOSER_MEMORY_LIMIT=-1 composer install --no-progress --prefer-dist
        - ln -s $CI_PROJECT_DIR /tmp/wordpress-develop/src/wp-content/plugins/$CI_PROJECT_NAME
      script:
        - vendor/bin/phpunit -d memory_limit=-1 --configuration phpunit-integration.xml --coverage-text --colors=never --log-junit tmp_artifacts/report.xml
      only:
        - master
      except:
        variables:
          - $DISABLE_COVERAGE
    
    .template: &job-test-integration-template-fast
      <<: *job-test-integration-template
      script:
        - vendor/bin/phpunit  -d memory_limit=-1 --configuration phpunit-integration.xml --no-coverage --log-junit tmp_artifacts/report.xml
      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