ciricihq/caduco

View on GitHub
.travis.yml

Summary

Maintainability
Test Coverage
language: php

php:
  - 5.6
  - 7.0
  - 7.1
  - 7.2

sudo: false

matrix:
  fast_finish: true

  include:
    - php: 7.2
      env: PHPCS=1

install:
  - composer self-update
  - composer install --prefer-dist --no-interaction

script:
  - if [[ '$PHPCS' != '1' && $TRAVIS_PHP_VERSION = 7.* ]]; then vendor/bin/phpunit --coverage-clover=clover.xml; fi
  - if [[ '$PHPCS' != '1' && $TRAVIS_PHP_VERSION != 7.* ]]; then phpunit; fi
  - if [ '$PHPCS' = '1' ]; then ./vendor/bin/phpcs -n -p --extensions=php --standard=vendor/cakephp/cakephp-codesniffer/CakePHP ./src ./tests; fi

notifications:
  email: false

after_success:
- bash <(curl -s https://codecov.io/bash)