Make file accessible to CI

Signed-off-by: Riyaz Faizullabhoy <riyaz.faizullabhoy@docker.com>
This commit is contained in:
Riyaz Faizullabhoy 2016-04-12 15:15:46 -07:00
parent cb080ede06
commit 23a1cf3c60
2 changed files with 7 additions and 2 deletions

View File

@ -13,8 +13,10 @@ function cleanupAndExit {
# Check for existence of SUCCESS
ls test_output/SUCCESS
exitCode=$?
# Clean up test_output dir and exit
rm -rf test_output
# Clean up test_output dir (if not in CircleCI) and exit
if [[ -z "${CIRCLECI}" ]]; then
rm -rf test_output
fi
exit $exitCode
}

View File

@ -45,3 +45,6 @@ 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 > /test_output/SUCCESS
# Make this file accessible for CI
chmod 777 /test_output/SUCCESS