Fix travis test

This commit is contained in:
Amin Vakil 2020-05-20 19:47:13 +04:30
parent 7debbcb40b
commit 49a6bdb68f
No known key found for this signature in database
GPG key ID: 1EFC1864E9D9E56B

View file

@ -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}