From 0a75efbfce082895b7d3b5a2577b1005ea1c3d3e Mon Sep 17 00:00:00 2001 From: Yan Date: Thu, 31 Aug 2017 22:55:39 +0800 Subject: [PATCH] fix issue 2362 (#3146) --- .travis.yml | 5 +++-- tests/validatecontainers.sh | 8 ++++++++ 2 files changed, 11 insertions(+), 2 deletions(-) create mode 100755 tests/validatecontainers.sh 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