forked from php-vcr/php-vcr
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
54 lines (48 loc) · 1.42 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
49
50
51
52
53
54
language: php
matrix:
fast_finish: true
include:
- env: TEST_DIR=. PHP_CS_FIXER=true PHPSTAN=true
php: 7.2
- env: TEST_DIR=. COMPOSER_FLAGS="--prefer-lowest"
php: 7.2
- env: TEST_DIR=.
php: 7.3
- env: TEST_DIR=.
php: 7.4
- env: TEST_DIR=tests/integration/apache
php: 7.2
dist: trusty
sudo: required
services:
- docker
- env: TEST_DIR=tests/integration/guzzle/3
php: 7.2
- env: TEST_DIR=tests/integration/guzzle/5
php: 7.2
- env: TEST_DIR=tests/integration/guzzle/6
php: 7.2
- env: TEST_DIR=tests/integration/soap
php: 7.2
before_install:
- composer self-update
install:
- composer update --prefer-source -o $COMPOSER_FLAGS
- PHPUNIT_BIN=$(pwd)/vendor/bin/phpunit
- cd ${TEST_DIR}
- composer update --prefer-source -o $COMPOSER_FLAGS
script:
- $PHPUNIT_BIN --coverage-clover=coverage.clover
- if [ "${PHP_CS_FIXER}" = "true" ]; then vendor/bin/php-cs-fixer fix --dry-run --diff $TRAVIS_BUILD_DIR; fi
- if [ "${PHPSTAN}" = "true" ]; then composer phpstan; fi
after_success:
- wget https://scrutinizer-ci.com/ocular.phar
- php ocular.phar code-coverage:upload --format=php-clover coverage.clover
cache:
directories:
- vendor
- tests/integration/guzzle/3/vendor
- tests/integration/guzzle/5/vendor
- tests/integration/guzzle/6/vendor
- tests/integration/soap/vendor
- $HOME/.composer/cache