Skip to content

Commit

Permalink
fix: removed help setup from test scripts (frappe#6857)
Browse files Browse the repository at this point in the history
  • Loading branch information
scmmishra authored and rmehta committed Jan 30, 2019
1 parent bd196ac commit 577c139
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions .travis/run-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,26 +11,20 @@ setup_mariadb_env() {
if [[ $DB == 'mariadb' ]]; then
setup_mariadb_env 'test_frappe'
bench --site test_site reinstall --yes
bench --site test_site setup-help
bench setup-global-help --root_password travis
bench --site test_site scheduler disable
bench --site test_site run-tests --coverage

elif [[ $TEST_TYPE == 'ui' ]]; then
setup_mariadb_env 'test_site_ui'
bench --site test_site_ui --force restore ./apps/frappe/test_sites/test_site_ui/test_site_ui-database.sql.gz
bench --site test_site_ui migrate
bench --site test_site_ui setup-help
bench setup-global-help --root_password travis
bench --site test_site_ui scheduler disable
cd apps/frappe && yarn && yarn cypress:run

elif [[ $DB == 'postgres' ]]; then
psql -c "CREATE DATABASE test_frappe;" -U postgres
psql -c "CREATE USER test_frappe WITH PASSWORD 'test_frappe';" -U postgres
bench --site test_site_postgres reinstall --yes
bench --site test_site_postgres setup-help
bench setup-global-help --db_type=postgres --root_password travis
bench --site test_site_postgres scheduler disable
bench --site test_site_postgres run-tests --coverage
fi

0 comments on commit 577c139

Please sign in to comment.