1
0
Fork 0

Update travis config.

pull/107/head
ADmad 2016-10-23 00:56:19 +05:30 committed by Felix Becker
parent 83afa0c1b8
commit 001f64f18c
1 changed files with 23 additions and 3 deletions

View File

@ -1,17 +1,37 @@
language: php language: php
sudo: false
dist: trusty
php: php:
- '7.0' - '7.0'
- '7.1'
env:
global:
- DEFAULT=1
matrix:
fast_finish: true
include:
- php: '7.0'
env: PHPCS=1 DEFAULT=0
cache: cache:
directories: directories:
- vendor - vendor
install: install:
- composer install - composer install --prefer-dist
script: script:
- vendor/bin/phpunit --coverage-clover=coverage.xml - if [[ $DEFAULT = 1 && $TRAVIS_PHP_VERSION == 7.0 ]]; then vendor/bin/phpunit --coverage-clover=coverage.xml; fi
- if [[ $DEFAULT = 1 && $TRAVIS_PHP_VERSION != 7.0 ]]; then vendor/bin/phpunit; fi
- if [[ $PHPCS = 1 ]]; then vendor/bin/phpcs -p --extensions=php --standard=PSR2 ./src ./tests; fi
after_success: after_success:
- bash <(curl -s https://codecov.io/bash) - if [[ $DEFAULT = 1 && $TRAVIS_PHP_VERSION = 7.0 ]]; then bash <(curl -s https://codecov.io/bash); fi