fix(travis): Set mysql root password to 'travis'
This commit is contained in:
parent
cbcb9de2d1
commit
265c215fa8
1 changed files with 6 additions and 4 deletions
10
.travis.yml
10
.travis.yml
|
|
@ -19,10 +19,12 @@ install:
|
|||
- bench init frappe-bench --skip-assets --python $(which python) --frappe-path $TRAVIS_BUILD_DIR
|
||||
- cp -r $TRAVIS_BUILD_DIR/test_sites/test_site ~/frappe-bench/sites/
|
||||
|
||||
- mysql -u root -ptravis -e "CREATE DATABASE test_frappe"
|
||||
- mysql -u root -ptravis -e "CREATE USER 'test_frappe'@'localhost' IDENTIFIED BY 'test_frappe'"
|
||||
- mysql -u root -ptravis -e "GRANT ALL PRIVILEGES ON \`test_frappe\`.* TO 'test_frappe'@'localhost'"
|
||||
- mysql -u root -ptravis -e "FLUSH PRIVILEGES"
|
||||
- mysql -u root -e "CREATE DATABASE test_frappe"
|
||||
- mysql -u root -e "CREATE USER 'test_frappe'@'localhost' IDENTIFIED BY 'test_frappe'"
|
||||
- mysql -u root -e "GRANT ALL PRIVILEGES ON \`test_frappe\`.* TO 'test_frappe'@'localhost'"
|
||||
|
||||
- mysql -u root -e "UPDATE mysql.user SET Password=PASSWORD('travis') WHERE User='root'"
|
||||
- mysql -u root -e "FLUSH PRIVILEGES"
|
||||
|
||||
before_script:
|
||||
- cd ./frappe-bench
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue