Skip to content

Commit f9ce04e

Browse files
committed
Update travis config and code coverage scripts
1 parent c5b3240 commit f9ce04e

File tree

2 files changed

+15
-8
lines changed

2 files changed

+15
-8
lines changed

.travis.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@ language: php
33
php:
44
- 7.0
55
- 7.1
6+
- 7.2
67

78
before_script:
89
- travis_retry composer self-update
910
- travis_retry composer install --no-interaction --prefer-source --dev
1011

1112
script:
12-
- ./vendor/bin/phpunit --coverage-text --coverage-clover ./build/logs/clover.xml
13+
- mkdir -p ./build/logs
14+
- ./vendor/bin/phpunit --coverage-text --coverage-clover ./build/logs/clover.xml
1315

14-
after_script:
15-
- php vendor/bin/coveralls
16-
- wget https://scrutinizer-ci.com/ocular.phar
17-
- php ocular.phar code-coverage:upload --format=php-clover ./build/logs/clover.xml
16+
after_success:
17+
- travis_retry php vendor/bin/php-coveralls -v

composer.json

+10-3
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
}
1010
],
1111
"require": {
12-
"php": ">=7.0.0",
1312
"illuminate/cache": "5.5.*",
14-
"illuminate/database": "5.5.*"
13+
"illuminate/database": "5.5.*",
14+
"php": ">=7.0.0"
1515
},
1616
"require-dev": {
1717
"codedungeon/phpunit-result-printer": "^0.4.4",
@@ -20,7 +20,7 @@
2020
"mockery/mockery": "0.9.*",
2121
"phpmd/phpmd": "^2.6",
2222
"phpunit/phpunit": "5.7.*",
23-
"satooshi/php-coveralls" : "*",
23+
"php-coveralls/php-coveralls" : "*",
2424
"sebastian/phpcpd": "*"
2525
},
2626
"autoload": {
@@ -35,5 +35,12 @@
3535
"psr-4": {
3636
"GeneaLabs\\LaravelModelCaching\\Tests\\": "tests/"
3737
}
38+
},
39+
"extra": {
40+
"laravel": {
41+
"providers": [
42+
"GeneaLabs\\LaravelModelCaching\\Providers\\Service"
43+
]
44+
}
3845
}
3946
}

0 commit comments

Comments
 (0)