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

Commit ca20f4f

Browse files
committed
Update docs for Travis integration
#29 #30 Update example travis integration and mention how to submit the API key to Codacy.
1 parent 7abc2dd commit ca20f4f

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

README.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,6 @@ export CODACY_PROJECT_TOKEN=%Project_Token%
6666
export CODACY_API_BASE_URL=<Codacy_instance_URL>:16006
6767
```
6868

69-
You do not need to provide this environment variable if run in CI systems like Travis or Circle.
70-
7169
# Usage
7270

7371
Run ```vendor/bin/codacycoverage``` to see a list of commands.
@@ -110,6 +108,10 @@ Add codacycoverage to your `.travis.yml`:
110108
```yml
111109
# .travis.yml
112110
language: php
111+
112+
env:
113+
- CODACY_PROJECT_TOKEN=<yourTokenGoesHere>
114+
113115
php:
114116
- 5.3
115117
- 5.4
@@ -118,8 +120,8 @@ php:
118120
- hhvm
119121

120122
before_script:
121-
- curl -s http://getcomposer.org/installer | php
122-
- php composer.phar install -n
123+
- travis_retry curl -s http://getcomposer.org/installer | php
124+
- travis_retry php composer.phar install -n
123125

124126
script:
125127
- php vendor/bin/phpunit

0 commit comments

Comments
 (0)