Files
nym/tests/build_and_run.sh
T
Tommy Verrall 73f3f8cfab pushing changes
2023-02-23 09:34:51 +02:00

46 lines
964 B
Bash
Executable File

#!/bin/bash
PWD="../"
GIT_BRANCH=$1
VERSION_NUMBER=$2
# lets make sure the branch is up to date
# ---------------------------------------
git checkout develop
git fetch origin
git checkout $GIT_BRANCH
git pull origin $GIT_BRANCH
# ---------------------------------------
echo "working directory ${PWD}"
#build all binaries...
#expect the cargo tool chain to be installed on the machine
cargo build --release --all
#here there should be the applicable binaries to test inits
echo "running mixnode binary check"
./nym-mixnode-binary-check.sh "$VERSION_NUMBER"
sleep 2
echo "running gateway binary check"
./nym-gateway-binary-check.sh "$VERSION_NUMBER"
sleep 2
echo "running socks-5 binary check"
./nym-socks-5-binary-check.sh "$VERSION_NUMBER"
sleep 2
echo "running network-requester binary check"
./nym-network-requester-binary-check.sh "$VERSION_NUMBER"
sleep 2
echo "running client binary check"
./nym-client-binary-check.sh "$VERSION_NUMBER"