Simplify .travis.yml
parent
9abe75e7e8
commit
0bfa99e0e7
30
.travis.yml
30
.travis.yml
|
@ -1,40 +1,18 @@
|
||||||
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
|
|
||||||
|
|
||||||
allow_failures:
|
|
||||||
- env: PHPCS=1 DEFAULT=0
|
|
||||||
|
|
||||||
cache:
|
cache:
|
||||||
directories:
|
directories:
|
||||||
- vendor
|
- vendor
|
||||||
|
|
||||||
install:
|
install:
|
||||||
- composer install --prefer-dist
|
- composer install
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- if [[ $DEFAULT = 1 && $TRAVIS_PHP_VERSION == 7.0 ]]; then vendor/bin/phpunit --coverage-clover=coverage.xml; fi
|
- vendor/bin/phpcs
|
||||||
|
- vendor/bin/phpunit --coverage-clover=coverage.xml
|
||||||
- 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
|
|
||||||
|
|
||||||
after_success:
|
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)
|
||||||
|
|
|
@ -1,4 +1,6 @@
|
||||||
<?xml version="1.0"?>
|
<?xml version="1.0"?>
|
||||||
<ruleset name="PHP Language Server">
|
<ruleset name="PHP Language Server">
|
||||||
|
<file>src</file>
|
||||||
|
<file>tests</file>
|
||||||
<rule ref="PSR2"/>
|
<rule ref="PSR2"/>
|
||||||
</ruleset>
|
</ruleset>
|
||||||
|
|
Loading…
Reference in New Issue