fix issue 2362 (#3146)

This commit is contained in:
Yan 2017-08-31 22:55:39 +08:00 committed by GitHub
parent b9422ec60a
commit 0a75efbfce
2 changed files with 11 additions and 2 deletions

View File

@ -100,9 +100,10 @@ script:
- docker-compose -f make/docker-compose.test.yml down
- sudo rm -rf /data/config/*
- ls /data/cert
- sudo make install GOBUILDIMAGE=golang:1.7.3 COMPILETAG=compile_golangimage CLARITYIMAGE=vmware/harbor-clarity-ui-builder:1.2.7 NOTARYFLAG=true
- sudo make install GOBUILDIMAGE=golang:1.7.3 COMPILETAG=compile_golangimage CLARITYIMAGE=vmware/harbor-clarity-ui-builder:1.2.7 NOTARYFLAG=true CLAIRFLAG=true
- docker ps
- docker ps
- ./tests/validatecontainers.sh
- ./tests/notarytest.sh
- ./tests/swaggerchecker.sh
- ./tests/startuptest.sh

8
tests/validatecontainers.sh Executable file
View File

@ -0,0 +1,8 @@
#!/bin/sh
set -e
if docker ps --filter "status=restarting" | grep 'vmware'; then
echo "container is restaring, fail CI."
exit 1
fi