estunnel 1.8.6

Tool for downloading data from elasticsearch cluster.
#!/usr/bin/env bash

set -ex

# Incorporate TARGET env var to the build and test process
if [[ $TARGET == x86_64-unknown-linux-musl ]]; then
    # TODO: run test after build
    docker run -v "$PWD:/volume" "clux/muslrust:$DOCKER_RUST_VERSION" sh -c \
        "cargo build --target $TARGET --release && \
         cargo install cargo-strip && \
         cargo strip"
else
    # We cannot run arm executables on linux
    if [[ $TARGET != arm-unknown-linux-* ]]; then
        cargo test --target "$TARGET"
    fi
    cargo build --target "$TARGET" --release
    cargo install cargo-strip && cargo strip
fi