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

integration.yml

Blame
  • integration.yml 5.02 KiB
    .template: &job-test-template
      stage: tests
      coverage: '/^\s*Lines:\s*\d+.\d+\%/'
      artifacts:
        reports:
          junit: tmp_artifacts/report.xml
      interruptible: true
    
    .template: &job-test-integration-template
      <<: *job-test-template
      tags:
        - integration
      dependencies:
        - prepare npm assets
        - prepare translations
      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
        - 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:
        refs:
          - 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: &integration_test_lastest
      <<: *job-test-integration-template-fast
      image: wpdesknet/phpunit-woocommerce:0-0
      except:
        variables:
          - $DISABLE_INTEGRATION_TESTS
    
    .template: &integration_test_lastest_coverage
      <<: *job-test-integration-template
      image: wpdesknet/phpunit-woocommerce:0-0
      except:
        variables:
          - $DISABLE_INTEGRATION_TESTS
          - $DISABLE_COVERAGE
    
    .template: &integration_test_php7-1_wc-1
      <<: *job-test-integration-template-fast
      image: wpdesknet/phpunit-woocommerce:1-1
      except:
        variables:
          - $DISABLE_INTEGRATION_TESTS
    
    .template: &integration_test_php7_wc-2
      <<: *job-test-integration-template-fast
      image: wpdesknet/phpunit-woocommerce:2-2
      except:
        variables:
          - $DISABLE_INTEGRATION_TESTS