warcprox/tests/run-tests.sh
Noah Levitt 7c7b0dc991 Revert "does it still hang if we don't really run anything inside docker?"
This reverts commit e1474133b638e1f442b812ee794a79b6038f6a69.

Conflicts:
	tests/run-tests.sh
2015-10-06 00:57:15 +00:00

20 lines
487 B
Bash
Executable File

#!/bin/bash
script_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
docker build -t internetarchive/rethinkdb $script_dir || exit 1
uid=$(id -u)
user=$(id -un)
for python in python2.7 python3.4
do
docker run --rm --volume="$script_dir/..:/rethinkstuff" internetarchive/rethinkdb /sbin/my_init -- \
bash -x -c "cd /rethinkstuff \
&& virtualenv -p $python /tmp/venv \
&& source /tmp/venv/bin/activate \
&& pip install pytest . \
&& py.test -v -s tests"
done