Skip to content

Commit c62efd2

Browse files
committed
Travis CI introduced
1 parent 011f9a8 commit c62efd2

File tree

4 files changed

+293
-56
lines changed

4 files changed

+293
-56
lines changed

.travis.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
language: php
2+
3+
matrix:
4+
fast_finish: true
5+
include:
6+
- php: 5.3
7+
- env: COMPOSER_FLAGS="--prefer-lowest"
8+
php: 5.3
9+
- php: 5.4
10+
- php: 5.5
11+
- php: 5.6
12+
- env: COMPOSER_FLAGS="--prefer-lowest"
13+
php: 5.6
14+
- php: 7.0
15+
- env: COMPOSER_FLAGS="--prefer-lowest"
16+
php: 7.0
17+
18+
before_install:
19+
- composer self-update
20+
21+
install:
22+
- composer update --prefer-source -o $COMPOSER_FLAGS
23+
24+
script:
25+
- ./vendor/bin/phpunit -c phpunit.xml.dist --coverage-clover=coverage.clover
26+
27+
after_success:
28+
- wget https://scrutinizer-ci.com/ocular.phar
29+
- php ocular.phar code-coverage:upload --format=php-clover coverage.clover
30+
31+
cache:
32+
directories:
33+
- vendor
34+
- $HOME/.composer/cache

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@
1111
],
1212

1313
"require": {
14-
"php-vcr/php-vcr": "*"
14+
"php-vcr/php-vcr": "^1.1.8"
1515
},
1616
"require-dev": {
17-
"phpunit/phpunit": "^4.8"
17+
"phpunit/phpunit": "^4.8|^5.0"
1818
}
1919
}

0 commit comments

Comments
 (0)