2016-11-25 16:56:29 +05:30
|
|
|
language: php
|
|
|
|
php:
|
|
|
|
- 5.5
|
|
|
|
- 5.6
|
|
|
|
- 7.0
|
2017-07-25 05:09:24 +05:30
|
|
|
- 7.1
|
2018-08-20 18:09:57 +05:30
|
|
|
- 7.2
|
2018-08-20 18:14:30 +05:30
|
|
|
- nightly
|
|
|
|
|
|
|
|
cache:
|
|
|
|
directories:
|
|
|
|
- vendor
|
|
|
|
- $HOME/.composer
|
2016-11-25 16:56:29 +05:30
|
|
|
|
2017-07-25 05:09:24 +05:30
|
|
|
env:
|
2018-08-20 18:14:30 +05:30
|
|
|
global:
|
|
|
|
- DEFAULT_COMPOSER_FLAGS="--optimize-autoloader --no-interaction --no-progress"
|
2017-07-25 05:09:24 +05:30
|
|
|
matrix:
|
|
|
|
- PREFER_LOWEST="--prefer-lowest"
|
|
|
|
- PREFER_LOWEST=""
|
|
|
|
|
2016-11-25 16:56:29 +05:30
|
|
|
before_script:
|
2018-08-20 18:14:30 +05:30
|
|
|
- composer global show hirak/prestissimo -q || travis_retry composer global require $DEFAULT_COMPOSER_FLAGS hirak/prestissimo
|
2017-07-25 05:14:36 +05:30
|
|
|
- travis_retry composer update --no-interaction --prefer-source $PREFER_LOWEST
|
2016-11-25 16:56:29 +05:30
|
|
|
- travis_retry phpenv rehash
|
|
|
|
|
2018-08-20 18:14:30 +05:30
|
|
|
stages:
|
|
|
|
- Static Code Analysis
|
|
|
|
- Test
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
include:
|
|
|
|
- stage: Static Code Analysis
|
|
|
|
php: 7.2
|
|
|
|
script:
|
|
|
|
- vendor/bin/php-cs-fixer fix -v --dry-run
|
|
|
|
allow_failures:
|
|
|
|
- php: nightly
|
|
|
|
|
2016-11-25 16:56:29 +05:30
|
|
|
script:
|
2018-08-20 18:14:30 +05:30
|
|
|
- vendor/bin/phpunit
|