Skip to content
Snippets Groups Projects
Select Git revision
  • 87e009193c59c70b18cb1644e271b2cc7a595374
  • master default protected
  • feat/message-handling
  • feat/request-id
  • 1.13.2
  • 1.13.1
  • 1.13.0
  • 1.12.1
  • 1.12.0
  • 1.11.0
  • 1.11.0-beta2
  • 1.11.0-beta1
  • 1.10.2
  • 1.10.1
  • 1.10.0
  • 1.9.0
  • 1.8.0
  • 1.7.4
  • 1.7.3
  • 1.7.2
  • 1.7.1
  • 1.7.0
  • 1.6.2
  • 1.6.2-beta2
24 results

WooCommerceHandler.php

Blame
  • integration.yml 6.19 KiB
    .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
      interruptible: true
    
    .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:
        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: