mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-21 22:35:27 +00:00
31 lines
654 B
YAML
31 lines
654 B
YAML
language: php
|
|
php:
|
|
- 5.5
|
|
- 5.6
|
|
- 7.0
|
|
- 7.1
|
|
- 7.2
|
|
- 7.3
|
|
- 7.4
|
|
|
|
matrix:
|
|
fast_finish: true
|
|
allow_failures:
|
|
- php: 5.5
|
|
|
|
install:
|
|
- if [[ $TRAVIS_PHP_VERSION =~ ^7\.1|7\.2|7\.3|7\.4$ ]]; then wget https://github.com/phpstan/phpstan/releases/download/0.12.5/phpstan.phar; fi
|
|
|
|
before_script:
|
|
- composer install
|
|
|
|
script:
|
|
- if [[ $TRAVIS_PHP_VERSION =~ ^7\.1|7\.2|7\.3|7\.4$ ]]; then php phpstan.phar analyse -c phpstan.neon lib tests; fi
|
|
- ./bin/phpunit --configuration tests/phpunit.xml --coverage-clover=coverage.xml
|
|
|
|
after_success:
|
|
- bash <(curl -s https://codecov.io/bash)
|
|
|
|
cache:
|
|
directories:
|
|
- $HOME/.composer/cache
|