estunnel 1.7.0

Tool for downloading data from elasticsearch cluster.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/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" cargo build --target "$TARGET" --release
else
    # We cannot run arm executables on linux
    if [[ $TARGET != arm-unknown-linux-* ]]; then
        cargo test --target "$TARGET"
    fi
    cargo build --target "$TARGET" --release
fi