diff --git a/.travis.yml b/.travis.yml index d4c617a..d5166c0 100644 --- a/.travis.yml +++ b/.travis.yml @@ -28,8 +28,8 @@ script: - chown -R travis:travis /home/travis/build/DarkaOnLine/L5-Swagger - mkdir -p tests/storage/logs/test-reports - chmod -R 777 /home/travis/build/DarkaOnLine/L5-Swagger - - vendor/bin/phpunit - - cp tests/storage/logs/test-reports/clover.xml clover.xml + - if [ $REPORT_TESTS_COVERAGE != 1 ]; then vendor/bin/phpunit --no-coverage; fi + - if [ $REPORT_TESTS_COVERAGE == 1 ]; then vendor/bin/phpunit; cp tests/storage/logs/test-reports/clover.xml clover.xml; fi after_success: - if [ $REPORT_TESTS_COVERAGE == 1 ] && [ $TRAVIS_PULL_REQUEST == "false" ]; then ./cc-test-reporter after-build -t clover --exit-code $TRAVIS_TEST_RESULT; fi - if [ $REPORT_TESTS_COVERAGE == 1 ]; then php vendor/bin/coveralls -v; fi diff --git a/tests/ConsoleTest.php b/tests/ConsoleTest.php index 2c81ea9..cdba022 100644 --- a/tests/ConsoleTest.php +++ b/tests/ConsoleTest.php @@ -24,9 +24,7 @@ public function canGenerate() /** @test */ public function canPublish() { - $this->setAnnotationsPath(); - - Artisan::call('vendor:publish', ['--provider' => "'L5Swagger\L5SwaggerServiceProvider'"]); + Artisan::call('vendor:publish', ['--provider' => 'L5Swagger\L5SwaggerServiceProvider']); $this->assertTrue(file_exists(config_path('l5-swagger.php'))); $this->assertTrue(file_exists(config('l5-swagger.paths.views').'/index.blade.php'));