forked from there4/slim-test-helpers
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
24 lines (19 loc) · 821 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
language: php
php:
- 5.5
- 5.6
- 7.0
matrix:
include:
- php: 5.5
env: dependencies=lowest
before_script:
- composer self-update -q
- if [ -z "$dependencies" ]; then composer install --no-interaction; fi;
- if [ "$dependencies" = "lowest" ]; then composer update --prefer-lowest --no-interaction; fi;
script:
- vendor/bin/phpunit --verbose --coverage-text --coverage-clover build/logs/clover.xml
- vendor/bin/phpcs --standard=PSR2 --extensions=php src tests
after_script:
- CODECLIMATE_REPO_TOKEN="c64749943f452f321fb2f11676453b71404edd1a36df06ab06c2337d6cbe9980" vendor/bin/test-reporter --stdout > codeclimate.json
- "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"