Skip to content

Commit

Permalink
Merge pull request #58 from fredrikaverpil/docker-compose
Browse files Browse the repository at this point in the history
Dockerfile
  • Loading branch information
fredrikaverpil committed Jun 4, 2016
2 parents 48c9198 + 5ae81fc commit bd5bda1
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 17 deletions.
7 changes: 7 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
FROM ubuntu:14.04
RUN apt-get update && apt-get install -y \
python-qt4 \
python-pyside \
python-pip
RUN pip install nose
ENTRYPOINT nosetests --verbose /Qt.py/tests.py
25 changes: 8 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -232,25 +232,16 @@ This project uses Travis for continuous integration and Travis uses Ubuntu 14.04
Assuming you have Docker already setup.

```bash
# Explanation of flags
# -ti interactive session
# --rm delete the image on exit
# Build image (see Dockerfile for specifics)
# Re-run this command to pull latest version of image
docker build -t mottosso/qtpy https://github.com/mottosso/Qt.py.git

# Run nosetests
# Explanation of flags:
# --rm delete the container on exit
# -v mount local path to container path
docker run -ti --rm -v /local/path/to/Qt.py:/root/Qt.py ubuntu:14.04

# Depdendencies used in tests
apt-get update && apt-get install -y \
python-qt4 \
python-pyside \
python3-pyqt4 \
python3-pyside \
python-pip
pip install nose

# Finally, cd into your local working directory
# and run the tests.
cd Qt.py
nosetests --verbose
docker run --rm -v $(pwd):/Qt.py mottosso/qtpy

# Tests require PySide and PyQt4 bindings to be installed ... ok
# Setting QT_PREFERRED_BINDING properly forces a particular binding ... ok
Expand Down

0 comments on commit bd5bda1

Please sign in to comment.