forked from php-vcr/php-vcr
-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
64 lines (58 loc) · 1.71 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
55
56
57
58
59
60
61
62
63
64
language: php
dist: precise
matrix:
fast_finish: true
include:
- env: TEST_DIR=.
php: 5.3
- env: TEST_DIR=. COMPOSER_FLAGS="--prefer-lowest"
php: 5.3
- env: TEST_DIR=.
php: 5.4
- env: TEST_DIR=.
php: 5.5
- env: TEST_DIR=.
php: 5.6
- env: TEST_DIR=. COMPOSER_FLAGS="--prefer-lowest"
php: 5.6
- env: TEST_DIR=.
php: 7.0
- env: TEST_DIR=. COMPOSER_FLAGS="--prefer-lowest"
php: 7.0
- env: TEST_DIR=.
php: 7.1
- env: TEST_DIR=. COMPOSER_FLAGS="--prefer-lowest"
php: 7.1
- env: TEST_DIR=. PHP_CS_FIXER=true
php: 7.2
- env: TEST_DIR=tests/integration/guzzle/3
php: 5.6
- env: TEST_DIR=tests/integration/guzzle/4
php: 5.6
- env: TEST_DIR=tests/integration/guzzle/5
php: 5.6
- env: TEST_DIR=tests/integration/guzzle/6
php: 5.6
- env: TEST_DIR=tests/integration/soap
php: 5.6
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 wget http://cs.sensiolabs.org/download/php-cs-fixer-v2.phar && php ./php-cs-fixer-v2.phar fix --dry-run --diff $TRAVIS_BUILD_DIR; 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/4/vendor
- tests/integration/guzzle/5/vendor
- tests/integration/guzzle/6/vendor
- $HOME/.composer/cache