Simplify local testing #9

Merged
PeterSurda merged 1 commits from lee.miller/MiNode:test into v0.3 2024-07-23 15:34:18 +02:00
2 changed files with 12 additions and 1 deletions
Showing only changes of commit 97576f6750 - Show all commits

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