diff --git a/.travis.yml b/.travis.yml index b607120fd..de3d2b0d8 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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 diff --git a/tests/validatecontainers.sh b/tests/validatecontainers.sh new file mode 100755 index 000000000..e9b26e662 --- /dev/null +++ b/tests/validatecontainers.sh @@ -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