mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-07-16 08:12:08 +00:00
Updated travis testing to work with new helper configuration (#175)
* Updated travis to call phpunit globally rather then booting application first
This commit is contained in:
parent
7973412c29
commit
3f81eba13b
|
@ -6,7 +6,6 @@ php:
|
|||
|
||||
cache:
|
||||
directories:
|
||||
- vendor
|
||||
- node_modules
|
||||
- $HOME/.composer/cache
|
||||
|
||||
|
@ -29,8 +28,10 @@ before_script:
|
|||
- composer install --prefer-dist --no-interaction
|
||||
- npm install
|
||||
- ./node_modules/.bin/gulp
|
||||
- php artisan clear-compiled -n
|
||||
- php artisan optimize -n
|
||||
- php artisan migrate --force -n --database=mysql_testing
|
||||
- php artisan db:seed --force -n --class=DummyContentSeeder --database=mysql_testing
|
||||
|
||||
script:
|
||||
- vendor/bin/phpunit
|
||||
- phpunit
|
|
@ -2,7 +2,6 @@
|
|||
|
||||
use BookStack\Ownable;
|
||||
|
||||
if (!function_exists('versioned_asset')) {
|
||||
/**
|
||||
* Get the path to a versioned file.
|
||||
*
|
||||
|
@ -29,7 +28,6 @@ if (!function_exists('versioned_asset')) {
|
|||
|
||||
throw new InvalidArgumentException("File {$file} not defined in asset manifest.");
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if the current user has a permission.
|
||||
|
|
Loading…
Reference in New Issue
Block a user