Lee Miller
60fd56748f
- 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
14 lines
375 B
Bash
Executable File
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
|