Merge pull request #140 from pesho/enhance-test-build

Enhance test-build.sh to also perform simple execution tests
This commit is contained in:
Christopher Horrell 2016-04-05 08:42:00 -04:00
commit 4acc37bce5
1 changed files with 23 additions and 9 deletions

View File

@ -40,6 +40,13 @@ for version in "${versions[@]}"; do
info "Build of $tag succeeded." info "Build of $tag succeeded."
fi fi
OUTPUT=$(docker run --rm -it node:$tag node -e "process.stdout.write(process.versions.node)")
if [ "$OUTPUT" != "$tag" ]; then
fatal "Test of $tag failed!"
else
info "Test of $tag succeeded."
fi
variants=( onbuild slim wheezy ) variants=( onbuild slim wheezy )
for variant in "${variants[@]}"; do for variant in "${variants[@]}"; do
@ -52,6 +59,13 @@ for version in "${versions[@]}"; do
info "Build of $tag-$variant succeeded." info "Build of $tag-$variant succeeded."
fi fi
OUTPUT=$(docker run --rm -it node:$tag-$variant node -e "process.stdout.write(process.versions.node)")
if [ "$OUTPUT" != "$tag" ]; then
fatal "Test of $tag-$variant failed!"
else
info "Test of $tag-$variant succeeded."
fi
done done
done done