diff options
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/build_and_check.sh | 5 | ||||
-rwxr-xr-x | bin/build_and_run.sh | 8 | ||||
-rwxr-xr-x | bin/build_and_test.sh | 12 | ||||
-rwxr-xr-x | bin/build_and_unit_test.sh | 5 |
4 files changed, 30 insertions, 0 deletions
diff --git a/bin/build_and_check.sh b/bin/build_and_check.sh new file mode 100755 index 0000000..7d8b4e1 --- /dev/null +++ b/bin/build_and_check.sh @@ -0,0 +1,5 @@ +#!/usr/local/bin/fish +rm -rf _build/; +rebar3 upgrade; +rebar3 release; +dialyzer -r _build/default/lib/cdapbroker/ebin/ diff --git a/bin/build_and_run.sh b/bin/build_and_run.sh new file mode 100755 index 0000000..8d48716 --- /dev/null +++ b/bin/build_and_run.sh @@ -0,0 +1,8 @@ +#!/usr/local/bin/fish +rm -rf /tmp/log/cdapbroker/*; +rebar3 release; +set -x CDAP_CLUSTER_TO_MANAGE "cdap"; +set -x CONSUL_HOST "XXXX"; +set -x CONFIG_BINDING_SERVICE "config_binding_service"; +set -x HOSTNAME "cdap_broker"; +./_build/default/rel/cdapbroker/bin/cdapbroker diff --git a/bin/build_and_test.sh b/bin/build_and_test.sh new file mode 100755 index 0000000..b0456f4 --- /dev/null +++ b/bin/build_and_test.sh @@ -0,0 +1,12 @@ +#!/usr/local/bin/fish +rm -rf /tmp/log/cdapbroker/*; +rebar3 release; +set -x NEXUS_RAW_ROOT "XXXX"; +set -x CDAP_CLUSTER_TO_MANAGE "cdap"; +set -x CONSUL_HOST "XXXX"; +set -x CONFIG_BINDING_SERVICE "config_binding_service"; +set -x HOSTNAME "cdap_broker"; +set -x REBAR3_ERL_ARGS "-sname cdapbroker@localhost"; +rebar3 local install; +env DEBUG=1 ~/.cache/rebar3/bin/rebar3 ct; +rebar3 eunit diff --git a/bin/build_and_unit_test.sh b/bin/build_and_unit_test.sh new file mode 100755 index 0000000..7a2c757 --- /dev/null +++ b/bin/build_and_unit_test.sh @@ -0,0 +1,5 @@ +#!/usr/local/bin/fish +rm -rf _build/; +rebar3 upgrade; +rebar3 release; +rebar3 eunit |