mirror of
https://github.com/elyby/php-code-style.git
synced 2024-11-26 00:38:44 +05:30
Add travis ci
This commit is contained in:
parent
59e9994662
commit
a7bef227df
35
.travis.yml
Normal file
35
.travis.yml
Normal file
@ -0,0 +1,35 @@
|
||||
language: php
|
||||
php:
|
||||
- '7.0'
|
||||
- '7.1'
|
||||
- '7.2'
|
||||
- nightly
|
||||
|
||||
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
|
||||
script:
|
||||
- vendor/bin/phpunit
|
||||
allow_failures:
|
||||
- php: nightly
|
Loading…
Reference in New Issue
Block a user