forked from php-vcr/php-vcr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
53 lines (46 loc) · 1.21 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
language: php
# Test php-vcr with all relevant PHP versions but only use PHP 5.6 for integration tests.
matrix:
fast_finish: true
include:
- env: TEST_DIR=.
php: 5.3
- env: TEST_DIR=.
php: 5.4
- env: TEST_DIR=.
php: 5.5
- env: TEST_DIR=.
php: 5.6
- env: TEST_DIR=.
php: 7.0
- env: TEST_DIR=.
php: hhvm-nightly
- 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/soap
php: 5.6
allow_failures:
- php: hhvm-nightly
- php: 7.0
before_install:
- composer install && cd ${TEST_DIR}
install:
- composer install
script:
- phpunit --coverage-clover=coverage.clover
after_success:
- wget https://scrutinizer-ci.com/ocular.phar
- php ocular.phar code-coverage:upload --format=php-clover coverage.clover
# Faster builds on travis setup not using sudo.
sudo: false
cache:
directories:
- vendor
- tests/integration/guzzle/3/vendor
- tests/integration/guzzle/4/vendor
- tests/integration/guzzle/5/vendor
- $HOME/.composer/cache