1
0
Fork 0

Simplify .travis.yml

pull/107/head
Felix Becker 2016-10-24 18:58:42 +02:00
parent 9abe75e7e8
commit 0bfa99e0e7
2 changed files with 6 additions and 26 deletions

View File

@ -1,40 +1,18 @@
language: php
sudo: false
dist: trusty
php:
- '7.0'
- '7.1'
env:
global:
- DEFAULT=1
matrix:
fast_finish: true
include:
- php: '7.0'
env: PHPCS=1 DEFAULT=0
allow_failures:
- env: PHPCS=1 DEFAULT=0
cache:
directories:
- vendor
install:
- composer install --prefer-dist
- composer install
script:
- 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=phpcs.xml.dist ./src ./tests; fi
- vendor/bin/phpcs
- vendor/bin/phpunit --coverage-clover=coverage.xml
after_success:
- if [[ $DEFAULT = 1 && $TRAVIS_PHP_VERSION = 7.0 ]]; then bash <(curl -s https://codecov.io/bash); fi
- bash <(curl -s https://codecov.io/bash)

View File

@ -1,4 +1,6 @@
<?xml version="1.0"?>
<ruleset name="PHP Language Server">
<file>src</file>
<file>tests</file>
<rule ref="PSR2"/>
</ruleset>