Skip to content

Commit

Permalink
Docker based testing
Browse files Browse the repository at this point in the history
  • Loading branch information
omab committed Nov 27, 2016
1 parent df861e8 commit 2693374
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
FROM n42org/tox
MAINTAINER Matías Aguirre <matiasaguirre@gmail.com>
RUN apt-get update
RUN apt-get install -y make libxml2-dev libxmlsec1-dev
11 changes: 11 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,17 @@ setup-pyenv: check-pyenv
run-tox:
@ tox

docker-tox-build:
@ docker inspect omab/psa-social-core >/dev/null 2>&1 || ( \
docker build -t omab/psa-social-core . \
)

docker-tox: docker-tox-build
@ docker run -it --rm \
--name psa-social-core-test \
-v "`pwd`:/code" \
-w /code omab/psa-social-core tox

tests: setup-pyenv run-tox clean

clean:
Expand Down

0 comments on commit 2693374

Please sign in to comment.