Simplify local testing #2259
|
@ -24,3 +24,5 @@ RUN wget -qO appimage-builder-x86_64.AppImage \
|
|||
https://github.com/AppImageCrafters/appimage-builder/releases/download/v1.1.0/appimage-builder-1.1.0-x86_64.AppImage
|
||||
|
||||
ADD . .
|
||||
|
||||
CMD .buildbot/tox-bionic/build.sh
|
||||
|
|
|
@ -20,3 +20,7 @@ RUN python3.8 -m pip install --upgrade pip tox virtualenv
|
|||
ENV LANG en_US.UTF-8
|
||||
ENV LANGUAGE en_US:en
|
||||
ENV LC_ALL en_US.UTF-8
|
||||
|
||||
ADD . .
|
||||
|
||||
CMD .buildbot/tox-bionic/test.sh
|
||||
|
|
|
@ -13,3 +13,5 @@ RUN apt-get install -yq --no-install-suggests --no-install-recommends \
|
|||
RUN python3.9 -m pip install --upgrade pip tox virtualenv
|
||||
|
||||
ADD . .
|
||||
|
||||
CMD .buildbot/tox-focal/test.sh
|
||||
|
|
|
@ -10,3 +10,7 @@ RUN apt-get install -yq --no-install-suggests --no-install-recommends \
|
|||
python3-dev python3-pip language-pack-en qt5dxcb-plugin tor xvfb
|
||||
|
||||
RUN pip install tox
|
||||
|
||||
ADD . .
|
||||
|
||||
CMD .buildbot/tox-jammy/test.sh
|
||||
|
|
11
docker-test.sh
Executable file
11
docker-test.sh
Executable file
|
@ -0,0 +1,11 @@
|
|||
#!/bin/sh
|
||||
|
||||
DOCKERFILE=.buildbot/tox-bionic/Dockerfile
|
||||
|
||||
docker build -t pybm/tox -f $DOCKERFILE .
|
||||
|
||||
if [ $? -gt 0 ]; then
|
||||
docker build --no-cache -t pybm/tox -f $DOCKERFILE .
|
||||
fi
|
||||
|
||||
docker run --rm -it pybm/tox
|
|
@ -1,7 +1,7 @@
|
|||
coverage
|
||||
psutil
|
||||
pycryptodome
|
||||
PyQt5;python_version>="3.7"
|
||||
PyQt5;python_version>="3.7" and platform_machine=="x86_64"
|
||||
mock;python_version<="2.7"
|
||||
python_prctl;platform_system=="Linux"
|
||||
six
|
||||
|
|
|
@ -1,13 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
DOCKERFILE=packages/docker/Dockerfile.bionic
|
||||
|
||||
# explicitly mark appimage stage because it builds in any case
|
||||
docker build --target appimage -t pybm/appimage -f $DOCKERFILE .
|
||||
|
||||
if [ $? -gt 0 ]; then
|
||||
docker build --no-cache --target appimage -t pybm/appimage -f $DOCKERFILE .
|
||||
fi
|
||||
|
||||
docker build --target tox -t pybm/tox -f $DOCKERFILE .
|
||||
docker run --rm -t pybm/tox
|
Reference in New Issue
Block a user