From 49a6bdb68f7fd8efebb6077db08c30cd9aec520c Mon Sep 17 00:00:00 2001 From: Amin Vakil Date: Wed, 20 May 2020 19:47:13 +0430 Subject: [PATCH] Fix travis test --- .travis.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 232fcc9..01bb824 100644 --- a/.travis.yml +++ b/.travis.yml @@ -18,10 +18,9 @@ install: --no-cache --tag ${TRAVIS_REPO_SLUG}:${TRAVIS_COMMIT} . script: -- DOCKERCONTAINER=$(docker run -d ${TRAVIS_REPO_SLUG}:${TRAVIS_COMMIT} -p 127.0.0.1:${CLIENT_PORT}:21 -e ADDRESS=ftp.example.com) -#- sleep 5 -#- telnet localhost ${CLIENT_PORT} < /dev/null || exit 1 +- DOCKERCONTAINER=$(docker run -d -p 127.0.0.1:${CLIENT_PORT}:21 -e ADDRESS=ftp.example.com ${TRAVIS_REPO_SLUG}:${TRAVIS_COMMIT}) - sleep 5 - docker ps -f id=${DOCKERCONTAINER} +- nc 127.0.0.1 ${CLIENT_PORT} < /dev/null - hadolint Dockerfile - docker stop ${DOCKERCONTAINER} && docker rm -fv ${DOCKERCONTAINER}