Simplify .travis.yml
parent
9abe75e7e8
commit
0bfa99e0e7
30
.travis.yml
30
.travis.yml
|
@ -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)
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
<?xml version="1.0"?>
|
||||
<ruleset name="PHP Language Server">
|
||||
<file>src</file>
|
||||
<file>tests</file>
|
||||
<rule ref="PSR2"/>
|
||||
</ruleset>
|
||||
|
|
Loading…
Reference in New Issue