mirror of
https://github.com/internetarchive/warcprox.git
synced 2025-01-18 13:22:09 +01:00
Merge pull request #1 from nlevitt/travis-docker
more fiddling with travis/docker
This commit is contained in:
commit
d24f2d8036
13
.travis.yml
13
.travis.yml
@ -1,15 +1,18 @@
|
|||||||
sudo: required
|
|
||||||
language: python
|
language: python
|
||||||
python:
|
python:
|
||||||
- 2.7
|
|
||||||
- 3.4
|
|
||||||
- 3.5
|
- 3.5
|
||||||
|
- 3.4
|
||||||
|
- 2.7
|
||||||
- nightly
|
- nightly
|
||||||
- pypy
|
- pypy
|
||||||
|
- pypy3
|
||||||
services:
|
services:
|
||||||
- docker
|
- docker
|
||||||
before_install:
|
before_install:
|
||||||
- docker build -t internetarchive/rethinkdb tests
|
- sudo service docker restart ; sleep 10 # https://github.com/travis-ci/travis-ci/issues/4778
|
||||||
|
- docker run -d --publish=28015:28015 rethinkdb
|
||||||
|
install:
|
||||||
|
- pip install . pytest
|
||||||
script:
|
script:
|
||||||
- docker run --rm -i -t --volume="..:/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"
|
- py.test -v -s tests
|
||||||
|
|
||||||
|
@ -9,12 +9,12 @@ user=$(id -un)
|
|||||||
|
|
||||||
for python in python2.7 python3.4
|
for python in python2.7 python3.4
|
||||||
do
|
do
|
||||||
docker run --rm -i -t --volume="$script_dir/..:/rethinkstuff" internetarchive/rethinkdb /sbin/my_init -- \
|
docker run -i --rm --volume="$script_dir/..:/rethinkstuff" internetarchive/rethinkdb /sbin/my_init -- \
|
||||||
bash -x -c "adduser --gecos=$user --disabled-password --quiet --uid=$uid $user \
|
true < /dev/null
|
||||||
&& sudo -u $user bash -x -c 'cd /rethinkstuff \
|
# bash -x -c "cd /rethinkstuff \
|
||||||
&& virtualenv -p $python /tmp/venv \
|
# && virtualenv -p $python /tmp/venv \
|
||||||
&& source /tmp/venv/bin/activate \
|
# && source /tmp/venv/bin/activate \
|
||||||
&& pip install pytest . \
|
# && pip install pytest . \
|
||||||
&& py.test -v -s tests'"
|
# && py.test -v -s tests"
|
||||||
done
|
done
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user