This repository has been archived on 2024-11-30. You can view files and clone it, but cannot push or open issues or pull requests.
PyBitmessage-2024-11-30/run-tests-in-docker.sh
Lee Miller 60fd56748f
Update the script for testing in docker container:
- don't require bash
  - mark appimage stage
  - use --no-cache if docker build fails
  - remove container after running the tests
  - use tty for colorful output
2022-08-03 17:03:12 +03:00

14 lines
375 B
Bash
Executable File

#!/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