forked from amphp/http-client-psr7
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
48 lines (38 loc) · 1.11 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
os: linux
dist: xenial
language: php
php:
- 7.2
- 7.3
- 7.4
- nightly
jobs:
allow_failures:
- php: nightly
fast_finish: true
env:
- AMP_DEBUG=true
before_install:
- phpenv config-rm xdebug.ini || echo "No xdebug config."
- pecl install pcov
install:
- if [ "$TRAVIS_PHP_VERSION" = "nightly" ]; then
composer update -n --prefer-dist --ignore-platform-reqs;
else
composer update -n --prefer-dist;
fi
- wget https://github.com/php-coveralls/php-coveralls/releases/download/v2.2.0/php-coveralls.phar
- wget https://github.com/maglnet/ComposerRequireChecker/releases/download/2.1.0/composer-require-checker.phar
- composer show
script:
- vendor/bin/phpunit --coverage-text --verbose --coverage-clover build/logs/clover.xml;
- php composer-require-checker.phar check composer.json --config-file $PWD/composer-require-check.json
- PHP_CS_FIXER_IGNORE_ENV=1 php vendor/bin/php-cs-fixer --diff --dry-run -v fix
- vendor/bin/psalm
after_script:
- travis_retry php php-coveralls.phar -v
cache:
directories:
- $HOME/.composer/cache
- $HOME/.php-cs-fixer
- $HOME/.local