2018-08-06 14:57:18 +05:30
|
|
|
language: php
|
|
|
|
|
|
|
|
cache:
|
|
|
|
directories:
|
|
|
|
- vendor
|
|
|
|
- $HOME/.composer
|
|
|
|
|
|
|
|
env:
|
|
|
|
global:
|
|
|
|
- DEFAULT_COMPOSER_FLAGS="--optimize-autoloader --no-interaction --no-progress"
|
|
|
|
|
|
|
|
before_script:
|
|
|
|
- composer global show hirak/prestissimo -q || travis_retry composer global require $DEFAULT_COMPOSER_FLAGS hirak/prestissimo
|
|
|
|
- composer install --no-interaction
|
|
|
|
|
|
|
|
stages:
|
|
|
|
- Static Code Analysis
|
|
|
|
- Test
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
include:
|
|
|
|
- stage: Static Code Analysis
|
|
|
|
php: 7.2
|
|
|
|
script:
|
|
|
|
- vendor/bin/php-cs-fixer fix -v --dry-run
|
|
|
|
- stage: Test
|
2018-08-14 06:37:53 +05:30
|
|
|
php: 7.0
|
2018-08-06 14:57:18 +05:30
|
|
|
script:
|
|
|
|
- vendor/bin/phpunit
|
2018-08-14 06:37:53 +05:30
|
|
|
- php: 7.1
|
|
|
|
script:
|
|
|
|
- vendor/bin/phpunit
|
|
|
|
- php: 7.2
|
|
|
|
script:
|
|
|
|
- vendor/bin/phpunit
|
|
|
|
- php: nightly
|
|
|
|
script:
|
|
|
|
- vendor/bin/phpunit
|
|
|
|
|
2018-08-06 14:57:18 +05:30
|
|
|
allow_failures:
|
|
|
|
- php: nightly
|