2018-09-06 17:55:48 -04:00
|
|
|
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
|
|
|
|
cd "$(dirname "$0")"
|
|
|
|
|
2018-11-15 15:26:33 -05:00
|
|
|
#run all the python steps in a background process
|
2018-11-19 18:27:25 -05:00
|
|
|
(time /home/travis/build/apache/incubator-superset/superset/bin/superset db upgrade; time /home/travis/build/apache/incubator-superset/superset/bin/superset load_test_users; /home/travis/build/apache/incubator-superset/superset/bin/superset load_examples --load-test-data; time /home/travis/build/apache/incubator-superset/superset/bin/superset init; echo "[completed python build steps]"; flask run -p 8081 --with-threads --reload --debugger) &
|
2018-11-15 15:26:33 -05:00
|
|
|
|
|
|
|
#block on the longer running javascript process
|
|
|
|
(time yarn install --frozen-lockfile; time npm run build; echo "[completed js build steps]")
|
|
|
|
|
|
|
|
CYPRESS_PATH='cypress/integration/'${1}'/*'
|
|
|
|
time npm run cypress run -- --spec "$CYPRESS_PATH" --record false --config video=false
|
|
|
|
|
2018-09-06 17:55:48 -04:00
|
|
|
kill %1
|