Simplify local testing #9

Merged
PeterSurda merged 1 commits from lee.miller/MiNode:test into v0.3 2024-07-23 13:34:18 +00:00
2 changed files with 12 additions and 1 deletions

View File

@ -18,4 +18,4 @@ RUN pip install --upgrade pip tox virtualenv
ADD . .
CMD .buildbot/ubuntu/test.sh
CMD .buildbot/ubuntu/build.sh && .buildbot/ubuntu/test.sh

11
docker-test.sh Executable file
View File

@ -0,0 +1,11 @@
#!/bin/sh
DOCKERFILE=.buildbot/ubuntu/Dockerfile
docker build -t minode/tox -f $DOCKERFILE .
if [ $? -gt 0 ]; then
docker build --no-cache -t minode/tox -f $DOCKERFILE .
fi
docker run --rm -it minode/tox