Skip to content
Snippets Groups Projects
Select Git revision
  • ff0953e5bbdf8227b15274dda9d3b96de7bc34d6
  • 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

Basic_Requirement_Checker.php

Blame
  • codeception.yml 5.18 KiB
    .codeception-base:
      tags:
        - codeception
        - $TESTS_TAG
      image:
        name: gitlab.wpdesk.dev:5050/wpdesk/docker-tests/codeception:13.1.0
        entrypoint: [""]
      variables:
        WP_CLI_CACHE_DIR: /cache/wp-cli
        APACHE_DOCUMENT_ROOT: ${CI_PROJECT_DIR}/tests/wordpress
        SCREEN_WIDTH: 1200
        SCREEN_HEIGHT: 1200
        DEPENDENT_PLUGINS_DIR: ${CI_PROJECT_DIR}/tests/dependent_plugins
      services:
        - name: mysql:5.6
          alias: mysqltests
          command: [--max-allowed-packet=67108864]
        - name: wpdesknet/wordpress:52
          alias: wootests
        - name: selenium/standalone-chrome:latest
          alias: chrome
      artifacts:
        when: always
        expire_in: 1 month
        name: "acceptance logs"
        paths:
          - tests/codeception/tests/_output
        reports:
          junit: tests/codeception/tests/_output/report.xml
      stage: tests
      needs:
        - prepare prefixed vendor
        - prepare translations
        - job: prepare tests
          optional: true
        - job: prepare npm assets
          optional: true
      rules:
        - if: $DISABLE_CODECEPTION
          when: never
        - if: $IS_LIBRARY || $IS_NPM_LIBRARY
          when: never
      allow_failure: false
      interruptible: true
      before_script:
        - composer config gitlab-token.gitlab.wpdesk.dev gitlab-ci-token ${CI_JOB_TOKEN}
        - echo "xdebug.max_nesting_level=2560" >> /usr/local/etc/php/php.ini
        - mkdir -p /cache/wp-cli
        - mkdir -p /project
        - mkdir -p ${APACHE_DOCUMENT_ROOT}
        - mkdir -p ${CI_PROJECT_DIR}/tests/codeception/tests/{_output,acceptance,functional,unit}
        - export DEPENDENT_PLUGINS_DIR=${CI_PROJECT_DIR}/tests/dependent_plugins
        - export MYSQL_IP=$(awk '/^[[:space:]]*($|#)/{next} /mysqltests/{print $1; exit}' /etc/hosts)
        - export WOOTESTS_IP=$(awk '/^[[:space:]]*($|#)/{next} /wootests/{print $1; exit}' /etc/hosts)
        - export TEST_SITE_WP_URL="http://${WOOTESTS_IP}"
        - |
          if [ -f ${CI_PROJECT_DIR}/tests/codeception/bootstrap.sh ]; then
            set -x
            cp -r ${CI_PROJECT_DIR}/. /project
            cd /project
            composer install --no-progress --prefer-dist --no-dev
            rm auth.json
            cd ${CI_PROJECT_DIR}
            set +x
          fi
        - |
          if [ -f ${CI_PROJECT_DIR}/tests/codeception/bootstrap.sh ]; then
            set -x
            cd ${APACHE_DOCUMENT_ROOT}
            wp core download ${WORDPRESS_CLI_PARAMETERS} --allow-root