https://github.com/Netflix/atlas
Tip revision: 49d435252d25325789ef2da0b280c9b174df330b authored by brharrington on 01 September 2016, 15:56:05 UTC
reduce size of publish failure response (#431)
reduce size of publish failure response (#431)
Tip revision: 49d4352
Makefile
# Map stdin to /dev/null to avoid interactive prompts if there is some failure related to the
# build script.
SBT := cat /dev/null | project/sbt
WIKI_PRG := atlas-wiki/runMain com.netflix.atlas.wiki.Main
WIKI_DIR := target/atlas.wiki
LAUNCHER_JAR_URL := https://repo1.maven.org/maven2/com/netflix/iep/iep-launcher/0.1.14/iep-launcher-0.1.14.jar
.PHONY: build snapshot release clean coverage license update-wiki publish-wiki
build:
$(SBT) clean test checkLicenseHeaders
snapshot:
# Travis uses a depth when fetching git data so the tags needed for versioning may not
# be available unless we explicitly fetch them
git fetch --unshallow
$(SBT) clean test checkLicenseHeaders storeBintrayCredentials publish
release:
# Travis uses a depth when fetching git data so the tags needed for versioning may not
# be available unless we explicitly fetch them
git fetch --unshallow
# Storing the bintray credentials needs to be done as a separate command so they will
# be available early enough for the publish task.
#
# The storeBintrayCredentials still needs to be on the subsequent command or we get:
# [error] (iep-service/*:bintrayEnsureCredentials) java.util.NoSuchElementException: None.get
$(SBT) storeBintrayCredentials
$(SBT) clean test checkLicenseHeaders storeBintrayCredentials publish bintrayRelease
clean:
$(SBT) clean
coverage:
$(SBT) clean coverage test coverageReport
$(SBT) coverageAggregate
license:
$(SBT) formatLicenseHeaders
$(WIKI_DIR):
mkdir -p target
git clone https://github.com/Netflix/atlas.wiki.git $(WIKI_DIR)
update-wiki: $(WIKI_DIR)
cd $(WIKI_DIR) && git rm -rf *
$(SBT) "$(WIKI_PRG) atlas-wiki/src/main/resources $(WIKI_DIR)"
publish-wiki: update-wiki
cd $(WIKI_DIR) && git add * && git status
cd $(WIKI_DIR) && git commit -a -m "update wiki"
cd $(WIKI_DIR) && git push origin master
one-jar:
mkdir -p target
curl -L $(LAUNCHER_JAR_URL) -o target/iep-launcher.jar
java -classpath target/iep-launcher.jar com.netflix.iep.launcher.JarBuilder \
target/standalone.jar com.netflix.atlas.standalone.Main \
`$(SBT) "export atlas-standalone/runtime:fullClasspath" | tail -n1 | sed 's/:/ /g'`