Skip to content
This repository was archived by the owner on Feb 19, 2020. It is now read-only.

Commit 194b838

Browse files
authored
Merge pull request #30 from ottlinger/master
Readd Travis support and update documentation
2 parents 978200f + 8a5ba81 commit 194b838

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

.travis.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
language: php
2+
3+
php:
4+
- '7.0.17'
5+
- '7.0'
6+
- '7.1.2'
7+
- nightly
8+
9+
before_script:
10+
# In case of timeouts and build failures you may want to prepend 'travis_retry' to the following commands:
11+
- curl -s http://getcomposer.org/installer | php
12+
- php composer.phar install -n
13+
14+
# Explicitly use the phpunit from composer, not any system-wide found
15+
script:
16+
- vendor/bin/phpunit tests
17+
# newer versions of phpunit allow this configuration: -c phpunit.xml --coverage-clover=coverage.xml tests
18+
19+
after_success:
20+
- php vendor/bin/codacycoverage clover

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,13 +108,17 @@ Add codacycoverage to your `.travis.yml`:
108108
```yml
109109
# .travis.yml
110110
language: php
111+
112+
# Do not forget to provide your CODACY_PROJECT_TOKEN as described in https://docs.travis-ci.com/user/environment-variables/#Defining-Variables-in-Repository-Settings
113+
111114
php:
112115
- 5.3
113116
- 5.4
114117
- 5.5
115118
- 5.6
116119
- hhvm
117120

121+
# In case of timeouts and build failures you may want to prepend 'travis_retry' to the following commands:
118122
before_script:
119123
- curl -s http://getcomposer.org/installer | php
120124
- php composer.phar install -n

0 commit comments

Comments
 (0)