Skip to content

Commit 436ed2a

Browse files
committed
Modified Scrutinizer / Travis setup to work, as per phpleague/skeleton
1 parent bc498c7 commit 436ed2a

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

.travis.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ php:
55
- 7.0
66
- hhvm
77

8+
# This triggers builds to run on the new TravisCI infrastructure.
9+
# See: http://docs.travis-ci.com/user/workers/container-based-infrastructure/
10+
sudo: false
11+
812
matrix:
913
allow_failures:
1014
- php: 7.0
@@ -17,5 +21,4 @@ script:
1721
- phpunit --coverage-text --coverage-clover=coverage.clover
1822

1923
after_script:
20-
- wget https://scrutinizer-ci.com/ocular.phar
21-
- php ocular.phar code-coverage:upload --format=php-clover coverage.clover
24+
- if [[ $TRAVIS_PHP_VERSION != 'hhvm' && $TRAVIS_PHP_VERSION != '7.0' ]]; then php vendor/bin/ocular code-coverage:upload --format=php-clover coverage.clover; fi

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@
2323
"require-dev": {
2424
"symfony/var-dumper": "~2",
2525
"phpunit/phpunit": "^5.0",
26-
"php-http/guzzle6-adapter": "~0.2@dev"
26+
"php-http/guzzle6-adapter": "~0.2@dev",
27+
"scrutinizer/ocular": "^1.1"
2728
},
2829
"autoload": {
2930
"psr-4": {

0 commit comments

Comments
 (0)