fix(travis): Rearrange commands
This commit is contained in:
parent
515014a355
commit
aef7d8d381
1 changed files with 6 additions and 7 deletions
13
.travis.yml
13
.travis.yml
|
|
@ -18,21 +18,20 @@ install:
|
|||
- cd ~/ && 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/
|
||||
|
||||
before_script:
|
||||
- cd ~/frappe-bench
|
||||
- bench start &
|
||||
- sleep 10
|
||||
|
||||
script:
|
||||
- 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"
|
||||
|
||||
before_script:
|
||||
- cd ~/frappe-bench
|
||||
- bench start &
|
||||
- sleep 10
|
||||
- bench --site test_site reinstall --yes
|
||||
- bench --site test_site scheduler disable
|
||||
- bench --site test_site run-tests --coverage
|
||||
|
||||
script:
|
||||
- bench --site test_site run-tests --coverage
|
||||
|
||||
after_script:
|
||||
- pip install python-coveralls
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue