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
|
2019-02-24 05:06:41 +05:30
|
|
|
- 7.3
|
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:
|
2019-02-24 16:57:39 +05:30
|
|
|
- DEFAULT_COMPOSER_FLAGS="--optimize-autoloader --no-progress"
|
|
|
|
- COMPOSER_NO_INTERACTION=1
|
2017-07-25 05:09:24 +05:30
|
|
|
matrix:
|
|
|
|
- PREFER_LOWEST=""
|
2019-02-24 17:03:25 +05:30
|
|
|
- PREFER_LOWEST="--prefer-lowest"
|
2017-07-25 05:09:24 +05:30
|
|
|
|
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
|
2019-02-24 17:03:25 +05:30
|
|
|
- '[ "${TRAVIS_PHP_VERSION:0:1}" == "5" ] && composer remove --dev --no-progress ely/php-code-style || true'
|
2019-02-24 16:57:39 +05:30
|
|
|
- travis_retry composer update --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
|