1
0
Fork 0
php-language-server/.travis.yml

41 lines
751 B
YAML
Raw Normal View History

2016-08-25 13:49:24 +00:00
language: php
2016-10-22 19:26:19 +00:00
sudo: false
dist: trusty
2016-08-25 13:49:24 +00:00
php:
- '7.0'
2016-10-22 19:26:19 +00:00
- '7.1'
env:
global:
- DEFAULT=1
matrix:
fast_finish: true
include:
- php: '7.0'
env: PHPCS=1 DEFAULT=0
2016-08-25 13:49:24 +00:00
2016-10-23 14:38:26 +00:00
allow_failures:
- env: PHPCS=1 DEFAULT=0
2016-10-14 07:08:40 +00:00
cache:
directories:
- vendor
2016-08-25 13:49:24 +00:00
install:
2016-10-22 19:26:19 +00:00
- composer install --prefer-dist
2016-08-25 13:49:24 +00:00
script:
2016-10-22 19:26:19 +00:00
- 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
after_success:
2016-10-22 19:26:19 +00:00
- if [[ $DEFAULT = 1 && $TRAVIS_PHP_VERSION = 7.0 ]]; then bash <(curl -s https://codecov.io/bash); fi