debian-mirror-gitlab/snowplow-javascript-tracker/local_test.sh
2020-04-13 14:06:41 +05:30

15 lines
461 B
Bash
Executable file

#!/usr/bin/env bash
cd core
grunt
cd ..
grunt local
if [[ "$(uname)" == "Darwin" ]]; then
(sleep 1 && open http:127.0.0.1:8000/integration.html)&
elif [[ "$(expr substr $(uname -s) 1 5)" == "Linux" ]]; then
(sleep 1 && xdg-open http:127.0.0.1:8000/integration.html)&
elif [[ "$(expr substr $(uname -s) 1 10)" == "MINGW32_NT" ]]; then
:
elif [[ "$(expr substr $(uname -s) 1 10)" == "MINGW64_NT" ]]; then
:
fi
python3 ./tests/local/http-server.py