mirror of
https://github.com/fluencelabs/examples
synced 2025-06-12 01:21:20 +00:00
Add curl_template to CI (#7)
This commit is contained in:
@ -1,7 +1,13 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
set -o errexit -o nounset -o pipefail
|
||||
|
||||
# check `fcli` and `fldist` tools are installed or install them
|
||||
if [[ -z "${NODE:-}" ]]; then
|
||||
NODE_ADDR=""
|
||||
else
|
||||
NODE_ADDR="--node-addr $NODE"
|
||||
fi
|
||||
|
||||
# check `marine` and `fldist` tools are installed or install them
|
||||
(command -v marine || cargo install marine) >/dev/null
|
||||
(command -v fldist || npm install -g @fluencelabs/fldist) >/dev/null
|
||||
|
||||
@ -17,4 +23,5 @@ test -f "$WASM" || echo >&2 "Couldn't find $WASM"
|
||||
|
||||
# create a service from that .wasm
|
||||
CONFIG="$(pwd)/backend/BackendConfig.json"
|
||||
fldist new_service --modules "$WASM:$CONFIG" --name curl_template
|
||||
SERVICE_ID=$(fldist new_service $NODE_ADDR --modules "$WASM:$CONFIG" --name call_parameters | head -n1 | sed -e 's/service id: //')
|
||||
echo $SERVICE_ID
|
||||
|
Reference in New Issue
Block a user