From aef7d8d3818f4c522c0605e72fe0fca361c0d93a Mon Sep 17 00:00:00 2001 From: Aditya Hase Date: Thu, 4 Jul 2019 20:09:01 +0530 Subject: [PATCH] fix(travis): Rearrange commands --- .travis.yml | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/.travis.yml b/.travis.yml index 22c2e6c30f..ecb48f4212 100644 --- a/.travis.yml +++ b/.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