Skip to content

Commit 99cd184

Browse files
committed
Added Travis CI support
1 parent cd19aed commit 99cd184

File tree

2 files changed

+29
-1
lines changed

2 files changed

+29
-1
lines changed

.travis.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
language: php
2+
php:
3+
- 5.4
4+
- 5.5
5+
- 5.6
6+
- 7.0
7+
- hhvm
8+
9+
matrix:
10+
allow_failures:
11+
- php: 7.0
12+
- php: hhvm
13+
fast_finish: true
14+
15+
before_install:
16+
- travis_retry composer self-update
17+
18+
install:
19+
- composer install --prefer-source
20+
21+
before_script:
22+
- echo 'phar.readonly = Off' >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
23+
24+
script: phpunit --coverage-text --coverage-clover=coverage.clover
25+
26+
after_script:
27+
- php vendor/bin/ocular code-coverage:upload --format=php-clover coverage.clover

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@
2020
"php": ">=5.4"
2121
},
2222
"require-dev": {
23-
"phpunit/phpunit": "4.5.*"
23+
"phpunit/phpunit": "4.5.*",
24+
"scrutinizer/ocular": "~1.1"
2425
},
2526
"autoload": {
2627
"psr-4": {

0 commit comments

Comments
 (0)