Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Loading status checks…
ManualBuild should abort early on failure
Showing
1 changed file
with
18 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,26 @@ | ||
source ./buildVersion.sh | ||
echo "Building tier/gte version ${VERSION_TAG}" | ||
docker build --pull --tag=tier/gte:base-${VERSION_TAG} base/ \ | ||
#&& docker build --build-arg VERSION_TAG=${VERSION_TAG} --tag=tier/gte:full_demo-${VERSION_TAG} full-demo \ | ||
docker build --pull --tag=tier/gte:base-${VERSION_TAG} base/ | ||
|
||
pushd ex101 | ||
./manualBuild.sh | ||
popd | ||
|
||
pushd ex201 | ||
./manualBuild.sh | ||
popd | ||
|
||
# pushd ex211 | ||
# ./manualBuild.sh | ||
# popd | ||
# | ||
# pushd ex301 | ||
# ./manualBuild.sh | ||
# popd | ||
result=$? | ||
if [ "$result" -ne 0 ]; then | ||
echo "Build in base exited with status $result" | ||
exit $result | ||
fi | ||
|
||
pushd ex401 | ||
./manualBuild.sh | ||
popd | ||
for lesson in ex101 ex201 ex401; do | ||
pushd ex101 | ||
./manualBuild.sh | ||
result=$? | ||
if [ "$result" -ne 0 ]; then | ||
echo "Build in $lesson exited with status $result" | ||
exit $result | ||
fi | ||
popd | ||
done | ||
|
||
if [[ "$OSTYPE" == "darwin"* ]]; then | ||
say full build complete | ||
fi | ||
|
||
exit $result |