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