Simplify local testing: test in a container using a docker-test.sh script
All checks were successful
Testing / default (push) Successful in 7m3s

This commit is contained in:
Lee Miller 2024-07-23 02:31:43 +03:00
parent a451a255af
commit 97576f6750
Signed by: lee.miller
GPG Key ID: 4F97A5EA88F4AB63
2 changed files with 12 additions and 1 deletions

View File

@ -18,4 +18,4 @@ RUN pip install --upgrade pip tox virtualenv
ADD . . 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