ci(docs-infra): factor out the aio-builds-setup environment variables

This commit is contained in:
Pete Bacon Darwin
2018-05-10 13:42:58 +01:00
committed by Miško Hevery
parent 98e3ef4003
commit 08c8d7fe56
6 changed files with 25 additions and 14 deletions

View File

@ -23,6 +23,7 @@ function countdown {
}
function onExit {
echo -e "Stopping Test Server"
aio-upload-server-test stop
echo -e "Full logs in '$logFile'.\n" > /dev/fd/3
}
@ -31,10 +32,13 @@ function onExit {
trap 'onExit' EXIT
# Start an upload-server instance for testing
echo -e "Starting Test Server"
aio-upload-server-test start --log $uploadServerLogFile
# Give the upload-server some time to start :(
countdown "Starting" 5 > /dev/fd/3
# Run the tests
echo Running the tests
source aio-test-env
node $AIO_SCRIPTS_JS_DIR/dist/lib/verify-setup | tee /dev/fd/3