Simplify local testing: test in a container using a docker-test.sh script
All checks were successful
Testing / default (push) Successful in 7m3s
All checks were successful
Testing / default (push) Successful in 7m3s
This commit is contained in:
parent
a451a255af
commit
97576f6750
|
@ -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
11
docker-test.sh
Executable 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
|
Loading…
Reference in New Issue
Block a user