Working on Travis
This commit is contained in:
parent
6b64910c9d
commit
4973246aed
1 changed files with 2 additions and 0 deletions
|
|
@ -37,6 +37,7 @@ install:
|
|||
- travis_retry composer install --prefer-dist;
|
||||
|
||||
before_script:
|
||||
# prevent MySQL went away error
|
||||
- mysql -u root -e 'SET @@GLOBAL.wait_timeout=28800;'
|
||||
# copy configuration files
|
||||
- cp .env.example .env
|
||||
|
|
@ -45,6 +46,7 @@ before_script:
|
|||
- sed -i 's/APP_ENV=production/APP_ENV=development/g' .env
|
||||
- sed -i 's/APP_DEBUG=false/APP_DEBUG=true/g' .env
|
||||
- sed -i 's/REQUIRE_HTTPS=false/NINJA_DEV=true/g' .env
|
||||
- cat .env
|
||||
# create the database and user
|
||||
- mysql -u root -e "create database IF NOT EXISTS ninja;"
|
||||
- mysql -u root -e "GRANT ALL PRIVILEGES ON ninja.* To 'ninja'@'localhost' IDENTIFIED BY 'ninja'; FLUSH PRIVILEGES;"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue