2018-10-08 05:36:20 -04:00
|
|
|
# git-bridge makefile
|
|
|
|
|
2021-01-04 05:11:18 -05:00
|
|
|
MVN_OPTS := "--no-transfer-progress"
|
2018-10-15 06:06:18 -04:00
|
|
|
|
2021-05-07 04:44:29 -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:
|
2021-01-04 05:11:18 -05:00
|
|
|
mvn $(MVN_OPTS) package -DskipTests
|
2018-10-08 05:36:20 -04:00
|
|
|
|
|
|
|
|
|
|
|
test:
|
2021-01-04 05:11:18 -05:00
|
|
|
mvn $(MVN_OPTS) test
|
2018-10-08 05:36:20 -04:00
|
|
|
|
|
|
|
|
|
|
|
clean:
|
2021-01-04 05:11:18 -05:00
|
|
|
mvn $(MVN_OPTS) clean
|
2018-10-08 05:36:20 -04:00
|
|
|
|
|
|
|
|
2019-03-06 06:41:59 -05:00
|
|
|
package: clean
|
2021-01-04 05:11:18 -05:00
|
|
|
mvn $(MVN_OPTS) package -DskipTests
|
2018-10-08 05:36:20 -04:00
|
|
|
|
|
|
|
|
2021-05-07 04:44:29 -04:00
|
|
|
.PHONY: run package build clean test runtime-conf
|