aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/sabre/http/.travis.yml
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2019-11-10 12:49:51 +0000
committerMario <mario@mariovavti.com>2019-11-10 14:10:03 +0100
commit580c3f4ffe9608d2beb56d418c68b3b112420e76 (patch)
tree82335d01179ac361d3f547a4b8e8c598d302e9f3 /vendor/sabre/http/.travis.yml
parentd22766f458a8539a40a57f3946459a9be1f21cd6 (diff)
downloadvolse-hubzilla-580c3f4ffe9608d2beb56d418c68b3b112420e76.tar.gz
volse-hubzilla-580c3f4ffe9608d2beb56d418c68b3b112420e76.tar.bz2
volse-hubzilla-580c3f4ffe9608d2beb56d418c68b3b112420e76.zip
another bulk of composer updates
(cherry picked from commit 6685381fd8db507493c3d7c1793f8c05c681bbce)
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)