aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/sabre/http/.travis.yml
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/sabre/http/.travis.yml')
-rw-r--r--vendor/sabre/http/.travis.yml45
1 files changed, 29 insertions, 16 deletions
diff --git a/vendor/sabre/http/.travis.yml b/vendor/sabre/http/.travis.yml
index 9e4964b9d..3b85d5f39 100644
--- a/vendor/sabre/http/.travis.yml
+++ b/vendor/sabre/http/.travis.yml
@@ -1,28 +1,41 @@
language: php
+sudo: required
php:
- - 5.4
- - 5.5
- - 5.6
- - 7
+ - 7.0
- 7.1
- - hhvm
+ - 7.2
+ - 7.3
+ - 7.4snapshot
+
+env:
+ global:
+ - RUN_PHPSTAN="FALSE"
+ matrix:
+ - PREFER_LOWEST="" WITH_COVERAGE="--coverage-clover=coverage.xml"
+ - PREFER_LOWEST="--prefer-lowest" $WITH_COVERAGE=""
matrix:
+ include:
+ - name: 'PHPStan'
+ php: 7.2
+ env: RUN_PHPSTAN="TRUE"
fast_finish: true
- allow_failures:
- - php: hhvm
-env:
- matrix:
- - PREFER_LOWEST=""
- - PREFER_LOWEST="--prefer-lowest"
+cache:
+ directories:
+ - $HOME/.composer/cache
+install:
+ - if [ $RUN_PHPSTAN == "TRUE" ]; then composer require --dev phpstan/phpstan; fi
before_script:
- - rm -f ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/xdebug.ini
-# - composer self-update
- - composer update --prefer-source $PREFER_LOWEST
+ - composer update --prefer-source $PREFER_LOWEST
+ - PHP_BIN=$(phpenv which php)
+ - sudo $PHP_BIN -S localhost:80 -t $TRAVIS_BUILD_DIR/tests/www 2>/dev/null &
script:
- - ./bin/phpunit --configuration tests/phpunit.xml
- - ./bin/sabre-cs-fixer fix . --dry-run --diff
+ - if [ $RUN_PHPSTAN == "FALSE" ]; then ./bin/phpunit --configuration tests/phpunit.xml $WITH_COVERAGE; fi
+ - if [ $RUN_PHPSTAN == "TRUE" ]; then php ./bin/phpstan analyse -c phpstan.neon lib; fi
+
+after_success:
+ - bash <(curl -s https://codecov.io/bash)