Fix travis test
This commit is contained in:
parent
7debbcb40b
commit
49a6bdb68f
1 changed files with 2 additions and 3 deletions
|
@ -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}
|
||||
|
|
Loading…
Reference in a new issue