Created
September 24, 2018 18:22
-
-
Save drewbrokke/0b57806f0a7bcc53d99431201d084fc5 to your computer and use it in GitHub Desktop.
Set up changes to portal-impl and portal-kernel after making changes that affect API in those directories.
This file contains hidden or 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
#!/bin/bash | |
error() { | |
echo "$1" | |
exit 1 | |
} | |
log() { | |
echo "[setupcore] $1" | |
} | |
git rev-parse -q || error "Must be inside a git directory" | |
TOP_LEVEL="$(git rev-parse --show-toplevel)" | |
for BUILD_FILE in "${TOP_LEVEL}/portal-kernel/build.xml" "${TOP_LEVEL}/portal-impl/build.xml" | |
do | |
log "" | |
log "running build for ${BUILD_FILE}" | |
log "" | |
ant -buildfile "${BUILD_FILE}" clean deploy install-portal-snapshot | |
done | |
log "" | |
log "running build for :core:portal-bootstrap" | |
log "" | |
"${TOP_LEVEL}/gradlew" --project-dir "${TOP_LEVEL}/modules/core/portal-bootstrap" clean deploy |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment