Commit 95e9cc73 authored by Samuel GAIST's avatar Samuel GAIST

[scripts] Moved protractor to beat/web/scripts

The script has also been modified to be called from the root
folder without requiring to be also put there.
parent b0927357
......@@ -18,6 +18,9 @@
# clean up any type of exit
trap "trap - SIGTERM && kill -- -$$" SIGINT SIGTERM EXIT
working_directory=$(pwd)
script_folder="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
# make sure the beat web server and web manager arent running already
if [ $(ps aux | grep -c 'django runserver') -gt 1 ]
then
......@@ -51,11 +54,11 @@ else
fi
# run the web server
beat_cmd='./bin/django runserver'
beat_cmd="$working_directory/bin/django runserver"
# spin up web manager
webdriver_cmd='./bin/webdriver-manager start'
webdriver_cmd="$working_directory/bin/webdriver-manager start"
# run tests
protractor_cmd='./bin/protractor ./protractor-conf.js'
protractor_cmd="$working_directory/bin/protractor $script_folder/protractor-conf.js"
# start bg processes
echo 'Output from the BEAT web server &' \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment