[Pkg-bitcoin-commits] [python-quamash] 71/78: WIPZ docker container for tests
Jonas Smedegaard
dr at jones.dk
Tue Dec 19 01:19:57 UTC 2017
This is an automated email from the git hooks/post-receive script.
js pushed a commit to annotated tag debian/0.6.0_dfsg-1
in repository python-quamash.
commit ec5cd76db9226bd9fa3b6438334857d1d79986e6
Author: Mark Thomas West Harviston <mark.harviston at gmail.com>
Date: Mon Nov 20 00:34:56 2017 -0800
WIPZ docker container for tests
---
.dockerignore | 7 +++++++
Dockerfile | 41 +++++++++++++++++++++++++++++++++++++++++
tox.ini | 3 ---
3 files changed, 48 insertions(+), 3 deletions(-)
diff --git a/.dockerignore b/.dockerignore
new file mode 100644
index 0000000..a26935f
--- /dev/null
+++ b/.dockerignore
@@ -0,0 +1,7 @@
+*.env
+.tox
+.git
+__pycache__
+*.pyc
+*.egg-info
+.cache
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 0000000..53b347d
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,41 @@
+FROM ubuntu:14.04
+RUN apt-get update -y && apt-get install -y curl build-essential software-properties-common python-software-properties
+RUN \
+ sudo mkdir -p /downloads && \
+ sudo chmod a+rw /downloads && \
+ if [ ! -f /downloads/sip.tar.gz ]; then curl -L -o /downloads/sip.tar.gz https://sourceforge.net/projects/pyqt/files/sip/sip-4.19.3/sip-4.19.3.tar.gz; fi && \
+ if [ ! -f /downloads/pyqt4.tar.gz ]; then curl -L -o /downloads/pyqt4.tar.gz https://sourceforge.net/projects/pyqt/files/PyQt4/PyQt-4.12.1/PyQt4_gpl_x11-4.12.1.tar.gz; fi && \
+ if [ ! -f /downloads/pyqt5.tar.gz ]; then curl -L -o /downloads/pyqt5.tar.gz https://sourceforge.net/projects/pyqt/files/PyQt5/PyQt-5.9/PyQt5_gpl-5.9.tar.gz; fi && \
+ echo '4708187f74a4188cb4e294060707106f /downloads/sip.tar.gz' | md5sum -c - && \
+ echo '0112e15858cd7d318a09e7366922f874 /downloads/pyqt4.tar.gz' | md5sum -c - && \
+ echo 'a409ac0d65ead9178b90c2822759a84b /downloads/pyqt5.tar.gz' | md5sum -c - && \
+ sudo mkdir -p /builds && \
+ sudo chmod a+rw /builds && \
+ cd /builds && \
+ tar xzf /downloads/sip.tar.gz --keep-newer-files && \
+ tar xzf /downloads/pyqt4.tar.gz --keep-newer-files && \
+ tar xzf /downloads/pyqt5.tar.gz --keep-newer-files && \
+ sudo apt-get install -y libqt4-dev && \
+ sudo add-apt-repository -y ppa:beineri/opt-qt591-trusty && \
+ sudo add-apt-repository -y ppa:deadsnakes/ppa && \
+ sudo apt-get update && \
+ sudo apt-get install -y qt59base python3.4-dev python3.5-dev python3.6-dev
+RUN \
+ for python in python34 python35 python36; do \
+ cd /builds/sip-4.19.3 && \
+ $python configure.py && \
+ make && \
+ sudo make install && \
+ cd /builds && \
+ cd /builds/PyQt4_gpl_x11-4.12.1 && \
+ $python configure.py -c --confirm-license --no-designer-plugin -e QtCore -e QtGui && \
+ make && \
+ sudo make install && \
+ cd /builds && \
+ source /opt/qt59/bin/qt59-env.sh && \
+ cd /builds/PyQt5_gpl-5.9 && \
+ $python configure.py -c --confirm-license --no-designer-plugin -e QtCore -e QtGui -e QtWidgets && \
+ make && \
+ sudo make install
+ADD . /quamash
+WORKDIR /quamash
diff --git a/tox.ini b/tox.ini
index 0aa9f7e..acd5e9d 100644
--- a/tox.ini
+++ b/tox.ini
@@ -1,7 +1,4 @@
[tox]
-# this tox file kinda works, but it's designed for a pretty
-# specific environment
-
envlist=flake8,py36-pyqt5,{py34,py35,py36}-pyqt4,py34-pyside
[testenv]
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-bitcoin/python-quamash.git
More information about the Pkg-bitcoin-commits
mailing list