Skip to content
Snippets Groups Projects
Select Git revision
  • d074c8f298cc2470130dceae6e5a4f6132197559
  • master default protected
  • fix/woo-stubs-dir
  • default-packages
  • use-internal-packages
  • update-setup
  • feature/wpdesk-cs
  • 2.5.3
  • 2.5.2
  • 2.5.1
  • 2.5.0
  • 2.4.2
  • 2.4.1
  • 2.4.0
  • 2.3
  • 2.2.1
  • 2.2
  • 2.1
  • 2.0
  • 1.10.15
  • 1.10.12
  • 1.10.8
  • 1.10.7
  • 1.10.6
  • 1.10.5
  • 1.10.3
  • 1.10.2
27 results

.gitlab-ci.yml

Blame
  • .gitlab-ci.yml 4.94 KiB
    #1.10.6
    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
    
    .template: &job-test-template
      stage: tests
      dependencies:
        - build php
      coverage: '/^\s*Lines:\s*\d+.\d+\%/'
    
    .template: &job-test-integration-template
      <<: *job-test-template
      services:
        - mysql
      script:
        - ls -l
        - php --version
        - composer phpunit-integration
    
    .template: &job-deploy-template
      image: wpdesknet/amazon-svn-deploy
      stage: deploy
      dependencies:
        - build to deploy
      retry: 2
      when: manual
      only:
        - tags
    
    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
    
    code style test:
      <<: *job-test-template
      image: wpdesknet/phpunit-woocommerce:0-0
      allow_failure: true
      script:
        - ls -l
        - php --version
        - composer phpcs