Skip to content

Instantly share code, notes, and snippets.

@drewbrokke
Created September 24, 2018 18:22
Show Gist options
  • Save drewbrokke/0b57806f0a7bcc53d99431201d084fc5 to your computer and use it in GitHub Desktop.
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.
#!/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