Skip to content

Commit

Permalink
Continuous Integration Database Setup; #10
Browse files Browse the repository at this point in the history
- bin/setupTestDatabases.sh - Copy config.json.tmpl to config.json
  create a test database and update the username & password database to
  match the newly created database.
  • Loading branch information
msnyon committed Jan 30, 2016
1 parent 7c6087d commit 4e7b830
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions bin/setupTestDatabases.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/bin/sh
#
#
#cp config/config.json.tmpl config/config.json
echo "Running Test Database Script"
# Script used to create & set up the test database for Continuous Integration
psql -c 'create database drywall-test;' -U postgres
cp config/config.json.tmpl config/config.json # Copy template file to template
sed -i -- 's/"_INSERT USERNAME_"/postgres/g' config/config.json # change username for db
sed -i -- 's/"_INSERT PASSWORD_"//g' config/config.json # change password for db
#echo "Running Test Database Script"

0 comments on commit 4e7b830

Please sign in to comment.