Skip to content
Snippets Groups Projects
Select Git revision
  • 0da3cfa0baf2750f5f150009596bd942f1465140
  • master default protected
  • bugfix/vendor-excluded
  • feature/phpcs-editorconfig
  • 1.3.2
  • 1.3.1
  • 1.3.0
  • 1.2.8
  • 1.2.7
  • 1.2.6
  • 1.2.5
  • 1.2.4
  • 1.2.3
  • 1.2.2
  • 1.2.1
  • 1.2.0
  • 1.1.0
  • 1.1.0-beta1
  • 1.0.1
  • 1.0.0
  • 1.0.0-beta8
  • 1.0.0-beta7
  • 1.0.0-beta6
  • 1.0.0-beta5
24 results

ruleset.xml

Blame
  • prepare.yml 2.28 KiB
    prepare prefixed vendor:
      image: gitlab.wpdesk.dev:5050/wpdesk/docker-tests/php-box:7.4
      artifacts:
        name: "vendor_prefixed"
        paths:
          - assets
          - vendor
          - vendor_prefixed
      tags:
        - vendor
      stage: prepare-vendor
      except:
        variables:
          - $IS_NPM_LIBRARY
      interruptible: true
      before_script:
        - composer config gitlab-token.gitlab.wpdesk.dev gitlab-ci-token ${CI_JOB_TOKEN}
        - echo ${WPDESK_CI_VERSION}
        - php --version
      script:
        - composer install
        - rm auth.json
    
    prepare npm assets:
      image: node:16.10
      artifacts:
        name: "node_assets"
        paths:
          - assets
      cache:
        key: ${CI_PROJECT_NAME}-node
        paths:
          - node_modules/
      tags:
        - vendor
      rules:
        - if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
          when: never
        - exists:
          - package.json
          - tests/codeception/prepare_npm.sh
        - if: $IS_NPM_LIBRARY
          when: never
      stage: prepare-vendor
      interruptible: true
      script:
        - mkdir -p /cache/npm-cache
        - npm config set cache /cache/npm-cache --global
        - if [[ -f package.json ]]; then npm install --no-audit --progress=false; fi
        - if [[ -f package.json ]]; then npm run prod; fi
        - if [[ -f tests/codeception/prepare_npm.sh ]]; then sh tests/codeception/prepare_npm.sh; fi
    
    prepare tests:
      image: wpdesknet/phpunit-woocommerce:0-0
      tags:
        - vendor
      stage: prepare-vendor
      artifacts:
        name: "dependent_plugins"
        paths:
          - tests/dependent_plugins
      rules:
        - if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
          when: never
        - exists:
          - tests/integration/prepare.sh
          - tests/codeception/prepare.sh
        - if: $IS_LIBRARY || $IS_NPM_LIBRARY
          when: never
      interruptible: true