Skip to content
This repository was archived by the owner on Feb 19, 2020. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
language: php

php:
- '7.0.17'
- '7.0'
- '7.1.2'
- nightly

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

# Explicitly use the phpunit from composer, not any system-wide found
script:
- vendor/bin/phpunit tests
# newer versions of phpunit allow this configuration: -c phpunit.xml --coverage-clover=coverage.xml tests

after_success:
- php vendor/bin/codacycoverage clover
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,13 +108,17 @@ Add codacycoverage to your `.travis.yml`:
```yml
# .travis.yml
language: php

# 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

php:
- 5.3
- 5.4
- 5.5
- 5.6
- hhvm

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