Completed
Push — development ( 499618...aa40cc )
by Alexander
07:36 queued 04:26
created

Checkout Config

build:
  environment:
    php:
      version: 5.6.16
      ini:
        'short_open_tag': 'On'

    memcached: true

  dependencies:
    # Runs before inferred commands
    before: []
    # Overwrites inferred commands
    override: []
    # Runs after inferred commands
    after: []

  # Run after dependencies
  project_setup:
    after:
      - rm -rf *
      - git clone https://github.com/nafigator/Veles.git
      - cd Veles
      - git checkout $SCRUTINIZER_BRANCH
      - git submodule add -f --name tests https://github.com/nafigator/Veles-unit-tests.git Tests
      - wget -q -O phpunit.phar https://phar.phpunit.de/phpunit.phar
      - chmod 755 phpunit.phar
      - wget -q -O phpcs.phar https://squizlabs.github.io/PHP_CodeSniffer/phpcs.phar
      - chmod 755 phpcs.phar

  tests:
    override:
      -
        command: ./phpunit.phar -c Tests/scrutinizer-phpunit.xml --stderr --coverage-clover '../coverage-report'
        coverage:
          file: coverage-report
          format: php-clover

      - ./phpcs.phar --encoding=utf-8 --standard=phpcs.xml --ignore=Tests,vendor -w --colors .

checks:
  php: true

filter:
  excluded_paths:
    - Tests/*