fix(travis): Rearrange commands

This commit is contained in:
Aditya Hase 2019-07-04 20:09:01 +05:30
parent 515014a355
commit aef7d8d381

View file

@ -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