-
-
Save tmcw/10834e08803b32292c81 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# unpack sauce connect | |
# cd sc-*-linux && ./bin/sc --user $SAUCE_USERNAME --api-key $SAUCE_ACCESS_KEY --readyfile ~/sauce_is_ready: | |
# wait for sauce to be ready | |
# while [ ! -e ~/sauce_is_ready ]; do sleep 1; done | |
# start testing server | |
trap "shutdown" SIGINT SIGTERM | |
shutdown() { | |
echo "got shutdown" | |
kill $SERVER_PID | |
kill $SELENIUM_PID | |
} | |
npm run start-production & | |
SERVER_PID=$! | |
selenium-server -log /tmp/quiet & | |
SELENIUM_PID=$! | |
sleep 10 | |
./node_modules/.bin/nightwatch | |
shutdown |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment