-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathDockerfile-py2.7
37 lines (31 loc) · 1.2 KB
/
Dockerfile-py2.7
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
FROM ubuntu:16.04
RUN apt-get update && \
apt-get install -y \
software-properties-common && \
add-apt-repository -y ppa:thopiekar/pyside-git && \
apt-get update && apt-get install -y \
python \
python-dev \
python-pip \
python-qt4 \
python-pyqt5 \
python-pyside \
python-pyside2 \
xvfb
# Nose is the Python test-runner
# RUN pip install -r /QtPyConvert/requirements.txt
# Enable additional output from Qt.py
ENV QT_VERBOSE true
# Xvfb
ENV DISPLAY :99
ENV PYTHONPATH="${PYTHONPATH}:/workspace/QtPyConvert/src/python"
WORKDIR /workspace/QtPyConvert/src/python
ENTRYPOINT cp -r /QtPyConvert /workspace && \
Xvfb :99 -screen 0 1024x768x16 2>/dev/null & \
sleep 3 && \
pip install -r /workspace/QtPyConvert/requirements.txt && \
python /workspace/QtPyConvert/tests/test_core/test_binding_supported.py && \
python /workspace/QtPyConvert/tests/test_core/test_replacements.py && \
python /workspace/QtPyConvert/tests/test_psep0101/test_qsignal.py && \
python /workspace/QtPyConvert/tests/test_psep0101/test_qvariant.py && \
python /workspace/QtPyConvert/tests/test_qtcompat/test_compatibility_members.py