File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 1
- #! /usr/bin/env bash
1
+ #! /bin/bash -e
2
+ SCRIPTDIR=$( python -c ' import os,sys;print os.path.dirname(os.path.realpath(sys.argv[1]))' " $0 " )
3
+
4
+ # Make sure we're in the correct place relative to Dockerfile no matter where we were called from
5
+ cd ` dirname " $SCRIPTDIR " `
2
6
3
7
docker build -t asylum_test .
4
8
docker run --rm --name asylum_test -it asylum_test ./run_tests.sh
Original file line number Diff line number Diff line change 1
- #! /usr/bin/env sh
1
+ #! /usr/bin/env bash
2
2
sudo pip install -r requirements/test.txt
3
3
sudo -u postgres service postgresql start
4
4
export PGPASSWORD=asylum; while true ; do psql -q asylum -c ' SELECT 1;' 1> /dev/null 2>&1 ; if [ " $? " -ne " 0" ]; then echo " Waiting for psql" ; sleep 1; else break ; fi ; done
You can’t perform that action at this time.
0 commit comments