diff options
Diffstat (limited to 'development.sh')
-rwxr-xr-x | development.sh | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/development.sh b/development.sh new file mode 100755 index 00000000..94500079 --- /dev/null +++ b/development.sh @@ -0,0 +1,66 @@ +#!/bin/bash + +# Usage: source ./development.sh and use functions defined here +# https://httpie.org/ is required for API calls + +export MAVEN_OPTS="-T1C" + +function veshv_full_rebuild() { + mvn clean install -Panalysis ${MAVEN_OPTS} +} + +function veshv_rebuild() { + mvn clean install ${MAVEN_OPTS} +} + +function veshv_build() { + mvn install ${MAVEN_OPTS} +} + +function veshv_fast_build() { + mvn install -DskipTests ${MAVEN_OPTS} +} + +function veshv_docker_start() { + docker-compose down + docker-compose rm -f + docker-compose up +} + +function veshv_docker_clean() { + docker volume prune +} + +function veshv_build_and_start() { + veshv_fast_build && veshv_docker_start +} + +function veshv_fresh_restart() { + docker-compose down + docker-compose rm -f + veshv_docker_clean + veshv_fast_build && docker-compose up +} + +function veshv_simul_dcaeapp_count() { + http --json GET http://localhost:8100/messages/count +} + +function veshv_simul_dcaeapp_last_key() { + http --json GET http://localhost:8100/messages/last/key +} + +function veshv_simul_dcaeapp_last_value() { + http --json GET http://localhost:8100/messages/last/value +} + +function veshv_simul_client() { + # feed me with json file using "<" + http --json POST http://localhost:8000/simulator/sync +} + +function veshv_simul_client_async() { + # feed me with json file using "<" + http --json POST http://localhost:8000/simulator/async +} + |