Skip to content
This repository was archived by the owner on Aug 9, 2019. It is now read-only.

Commit 13cd6c2

Browse files
committed
Added Travis CI support
1 parent 8f6c72e commit 13cd6c2

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.travis.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
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+
script: phpunit --coverage-text --coverage-clover=coverage.clover
22+
23+
after_script:
24+
- php vendor/bin/ocular code-coverage:upload --format=php-clover coverage.clover
25+
- php vendor/bin/test-reporter --coverage-report=coverage.clover --stdout > codeclimate.json
26+
- "curl -X POST -d @codeclimate.json -H 'Content-Type: application/json' -H 'User-Agent: Code Climate (PHP Test Reporter v0.1.1)' https://codeclimate.com/test_reports"
27+
28+
addons:
29+
code_climate:
30+
repo_token: 9179481fd917b2cf1463a145a9cbdbe46c9943b607cc902c5d27afa8cb4ee891

0 commit comments

Comments
 (0)