Skip to content
Snippets Groups Projects
Select Git revision
  • 59a2c72a35ad95a524b7532108fec66c18ec9f1b
  • main default protected
  • v0.10
  • 0.10.6
  • 0.10.5
  • 0.10.4
  • 0.10.3
  • 0.10.2
  • 0.10.1
  • 0.10.0
  • 0.9.1
  • 0.9.0
12 results

composer.json

Blame
  • .gitlab-ci.yml 4.48 KiB
    before_script:
      - cd ${CI_PROJECT_DIR}
    
    variables:
      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
    
    cache:
      untracked: true
      paths:
        - vendor
    
    stages:
      - build
      - tests
      - pre-deploy
      - deploy
    
    build php:
      image: wpdesknet/phpunit-woocommerce:0-0
      stage: build
      artifacts:
        expire_in: 1 day
        name: "dev vendor"
        paths:
          - vendor/
      script:
        - ls /usr/local/bin
        - composer install --no-progress
    
    #build js:
    #  image: node:slim
    #  stage: build
    #  script:
    #    - cd app
    #    - git clone git@gitlab.com:wpdesk/plugins-tests.git
    #    - cd plugins-tests
    #    - npm install
    #    - grunt dev-chrome
    
    code style test:
      image: wpdesknet/phpunit-woocommerce:0-0
      stage: tests
      allow_failure: true
      dependencies:
        - build php
      script:
        - ls -l
        - php --version
        - composer phpcs
    
    unit test 0:
      image: wpdesknet/phpunit-woocommerce:0-0
      stage: tests
      dependencies:
        - build php
      coverage: '/^\s*Lines:\s*\d+.\d+\%/'
      script:
        - ls -l
        - php --version
        - composer phpunit-unit
    
    integration test 0-0:
      image: wpdesknet/phpunit-woocommerce:0-0