overleaf/services/git-bridge/Makefile

32 lines
508 B
Makefile
Raw Normal View History

2018-10-08 09:36:20 +00:00
# git-bridge makefile
MVN_OPTS := "--no-transfer-progress"
2018-10-15 10:06:18 +00:00
runtime-conf:
/opt/envsubst < conf/envsubst_template.json > conf/runtime.json
run: package runtime-conf
java $(GIT_BRIDGE_JVM_ARGS) -jar \
target/writelatex-git-bridge-1.0-SNAPSHOT-jar-with-dependencies.jar \
conf/runtime.json
2018-10-08 09:36:20 +00:00
build:
mvn $(MVN_OPTS) package -DskipTests
2018-10-08 09:36:20 +00:00
test:
mvn $(MVN_OPTS) test
2018-10-08 09:36:20 +00:00
clean:
mvn $(MVN_OPTS) clean
2018-10-08 09:36:20 +00:00
package: clean
mvn $(MVN_OPTS) package -DskipTests
2018-10-08 09:36:20 +00:00
.PHONY: run package build clean test runtime-conf