Skip to content
This repository has been archived by the owner on Feb 13, 2019. It is now read-only.

Commit

Permalink
Fix test scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
mparent61 committed Jun 30, 2016
1 parent 21dc174 commit 4afbe94
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 20 deletions.
20 changes: 1 addition & 19 deletions scripts/init_db
Expand Up @@ -11,23 +11,5 @@ docker-compose run \
-e PGUSER=postgres \
-e PGPASSWORD=${PGPASSWORD} \
web \
psql -c "CREATE ROLE ${SITE_ID} PASSWORD '${SITE_PASSWORD}' SUPERUSER LOGIN CREATEDB;" \
psql -c "CREATE ROLE bulbs PASSWORD 'testing' SUPERUSER LOGIN CREATEDB;" \
|| true

docker-compose run \
-e PGHOST=postgres \
-e PGUSER=${SITE_ID} \
-e PGPASSWORD=${SITE_PASSWORD} \
web \
psql -d postgres -c "DROP DATABASE IF EXISTS ${SITE_DB};"

docker-compose run \
-e PGHOST=postgres \
-e PGUSER=${SITE_ID} \
-e PGPASSWORD=${SITE_PASSWORD} \
web \
psql -d postgres -c "CREATE DATABASE ${SITE_DB};"

docker-compose run \
web \
python manage.py migrate --noinput
2 changes: 1 addition & 1 deletion scripts/test
Expand Up @@ -3,4 +3,4 @@

SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"

docker-compose run web py.test tests/
docker-compose run web py.test "$@"

0 comments on commit 4afbe94

Please sign in to comment.