Write to file to signal success for make integration

Signed-off-by: Riyaz Faizullabhoy <riyaz.faizullabhoy@docker.com>
This commit is contained in:
Riyaz Faizullabhoy 2016-04-11 17:58:50 -07:00
parent 9303df90d5
commit 4216a37149
3 changed files with 10 additions and 2 deletions

View File

@ -8,6 +8,11 @@ function cleanup {
fi
}
function cleanupAndExit {
cleanup
rm /test_output/SUCCESS
}
if [[ -z "${CIRCLECI}" ]]; then
BUILDOPTS="--force-rm"
fi
@ -17,7 +22,8 @@ set -x
cleanup
docker-compose -f development.yml config
docker-compose -f development.yml build ${BUILDOPTS} --pull | tee
docker-compose -f development.yml up --abort-on-container-exit
trap cleanup SIGINT SIGTERM EXIT
trap cleanupAndExit SIGINT SIGTERM EXIT

View File

@ -44,4 +44,4 @@ bin/notary ${OPTS} delegation add ${REPONAME} targets/releases fixtures/secure.e
bin/notary ${OPTS} add ${REPONAME} readmetarget README.md
bin/notary ${OPTS} publish ${REPONAME}
bin/notary ${OPTS} delegation list ${REPONAME} | grep targets/releases
cat README.md | bin/notary ${OPTS} verify $REPONAME readmetarget > /dev/null
cat README.md | bin/notary ${OPTS} verify $REPONAME readmetarget > /test_output/SUCCESS

View File

@ -27,6 +27,8 @@ mysql:
- MYSQL_ALLOW_EMPTY_PASSWORD="true"
command: mysqld --innodb_file_per_table
client:
volumes:
- ./test_output:/test_output
build: .
dockerfile: Dockerfile
links: