Files
PINE/setup_docker_test_data.sh
Laura Glendenning d6aa00330d Add development updates.
Including:
1. Generated python documentat in docs/.
2. Starting a new python client in client/.
3. Moving testing data to test/.
4. The addition of Cypress UI tests and pytest tests in test/.
5. A number of bug fixes and improvements.
2020-07-30 11:59:05 -04:00

23 lines
598 B
Bash
Executable File

#!/bin/bash
# (C) 2019 The Johns Hopkins University Applied Physics Laboratory LLC.
DIR="$( cd "$( dirname "${0}" )" && pwd )"
source ${DIR}/.env
export PINE_VERSION=$(${DIR}/version.sh)
set -ex
if ! nc -z localhost ${EVE_PORT} || ! nc -z localhost ${MONGO_PORT} || ! nc -z localhost ${BACKEND_PORT} || ! wget -O /dev/null -o /dev/null http://localhost:${BACKEND_PORT}/ping; then
echo "Please run docker-compose up using docker-compose.test.yml."
exit 1
fi
export BACKEND_PORT
export EVE_PORT
export MONGO_PORT
pushd ${DIR}/test &> /dev/null
./setup_test_data.sh
popd &> /dev/null