overleaf/services/git-bridge/Makefile

32 lines
485 B
Makefile
Raw Normal View History

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