Skip to content

Commit

Permalink
Travis update and publish command fix
Browse files Browse the repository at this point in the history
  • Loading branch information
DarkaOnLine committed Feb 12, 2018
2 parents 0c05675 + fa82568 commit 6e452a6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 1 addition & 3 deletions tests/ConsoleTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'));
Expand Down

0 comments on commit 6e452a6

Please sign in to comment.