Permalink
Browse files

added test runner

  • Loading branch information...
1 parent 6ca6ec6 commit ae7b502cac59675cf2d5097f19d38578341f153a @jeffersonheard jeffersonheard committed Mar 4, 2014
Showing with 17 additions and 0 deletions.
  1. +17 −0 run-tests
View
@@ -0,0 +1,17 @@
+#!/bin/bash
+
+if [[ $PWD == *hydroshare ]]
+then
+
+docker run -t -i -name hydroshare-tests \
+ -link hydroshare-redis:redis \
+ -link hydroshare-postgis:postgis \
+ -p 0.0.0.0:80:80 -expose 22 \
+ -v $PWD:/home/docker/hydroshare
+ dev.hydroshare.org:5999/hydroshare /usr/bin/python /home/docker/hydroshare/manage.py runserver 0.0.0.0:80
+
+docker rm hydroshare-tests
+
+else
+ echo "ERROR: Must start test server from the hydroshare git repository root."
+fi

0 comments on commit ae7b502

Please sign in to comment.