forked from avniproject/avni-etl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
40 lines (30 loc) · 1.14 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
help:
@IFS=$$'\n' ; \
help_lines=(`fgrep -h "##" $(MAKEFILE_LIST) | fgrep -v fgrep | sed -e 's/\\$$//'`); \
for help_line in $${help_lines[@]}; do \
IFS=$$'#' ; \
help_split=($$help_line) ; \
help_command=`echo $${help_split[0]} | sed -e 's/^ *//' -e 's/ *$$//'` ; \
help_info=`echo $${help_split[2]} | sed -e 's/^ *//' -e 's/ *$$//'` ; \
printf "%-30s %s\n" $$help_command $$help_info ; \
done
include makefiles/utils.mk
build_jar: ## Builds the jar file
./gradlew clean build -x test
test:
./gradlew clean test --stacktrace
build_server: build_jar
# <server>
start_server: build_server
java -jar ./build/libs/etl-1.0.0-SNAPSHOT.jar
boot_run:
./gradlew bootRun
create-extensions:
-psql -h localhost -Uopenchs openchs_test -c 'create extension if not exists "uuid-ossp"';
-psql -h localhost -Uopenchs openchs_test -c 'create extension if not exists "ltree"';
-psql -h localhost -Uopenchs openchs_test -c 'create extension if not exists "hstore"';
open-test-results:
open build/reports/tests/test/index.html
start: boot_run
debug:
./gradlew bootRun -Dagentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:5005