Skip to content

Commit

Permalink
write verify script into current directory and use current directory …
Browse files Browse the repository at this point in the history
…to mount into docker container
  • Loading branch information
wildone committed Oct 8, 2019
1 parent 47c1b61 commit 77d139c
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions scripts/travis/container_verify.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,9 @@ fi
echo ">>> VERIFY BUILD CONTAINER <<<"
DIR=$(mktemp -d)
echo "TEST_COMMAND:${TEST_COMMAND}"
echo ${TEST_COMMAND}>"${DIR}/verify.bash"
cat ${DIR}/verify.bash
echo "TEST:docker run -v ${DIR}:/verify ${IMAGE}:${IMAGE_VERSION} bash -c \"cp /verify/verify.bash /; ls /; chmod u+x /verify.bash; cd /; ./verify.bash\""
export CONTAINER_OUTPUT=$(docker run -v ${DIR}:/verify ${IMAGE}:${IMAGE_VERSION} bash -c "cp /verify/verify.bash /; ls /; chmod u+x /verify.bash; cd /; ./verify.bash")
echo "${TEST_COMMAND}">"verify.bash"
echo "TEST:docker run -v $(pwd):/verify ${IMAGE}:${IMAGE_VERSION} bash -c \"echo ""***ROOT***""; ls /; echo ""***VERIFY***""; ls /verify; cp /verify/verify.bash /; chmod u+x /verify.bash; cd /; ./verify.bash\""
export CONTAINER_OUTPUT=$(docker run -v ${DIR}:/verify ${IMAGE}:${IMAGE_VERSION} bash -c "echo ""***ROOT***""; ls /; echo ""***VERIFY***""; ls /verify; cp /verify/verify.bash /; chmod u+x /verify.bash; cd /; ./verify.bash")
echo "CONTAINER_OUTPUT=${CONTAINER_OUTPUT}"

if [[ ! ${CONTAINER_OUTPUT} =~ ${TEST_COMMAND_VERIFY} ]]; then
Expand Down

0 comments on commit 77d139c

Please sign in to comment.