mirror of
https://github.com/elyby/league-oauth2-ely.git
synced 2024-12-22 13:29:45 +05:30
45 lines
934 B
YAML
45 lines
934 B
YAML
language: php
|
|
php:
|
|
- 5.5
|
|
- 5.6
|
|
- 7.0
|
|
- 7.1
|
|
- 7.2
|
|
- 7.3
|
|
- nightly
|
|
|
|
cache:
|
|
directories:
|
|
- vendor
|
|
- $HOME/.composer
|
|
|
|
env:
|
|
global:
|
|
- DEFAULT_COMPOSER_FLAGS="--optimize-autoloader --no-progress"
|
|
- COMPOSER_NO_INTERACTION=1
|
|
matrix:
|
|
- PREFER_LOWEST="--prefer-lowest"
|
|
- PREFER_LOWEST=""
|
|
|
|
before_script:
|
|
- composer global show hirak/prestissimo -q || travis_retry composer global require $DEFAULT_COMPOSER_FLAGS hirak/prestissimo
|
|
- '[ "${TRAVIS_PHP_VERSION:0:1}" == "5" ] && composer remove --ignore-platform-reqs --no-progress ely/php-code-style || true'
|
|
- travis_retry composer update --prefer-source $PREFER_LOWEST
|
|
- travis_retry phpenv rehash
|
|
|
|
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
|
|
|
|
script:
|
|
- vendor/bin/phpunit
|