#!/bin/bash
echo using Git Repo: ${GIT_REPO:="https://github.com/SpectraLogic/ds3_net_sdk.git"}
echo Using Git Branch: ${GIT_BRANCH:="master"}

echo DS3_ENDPOINT ${DS3_ENDPOINT}
echo DS3_SECRET_KEY ${DS3_SECRET_KEY}
echo DS3_ACCESS_KEY ${DS3_ACCESS_KEY}

echo "cd /opt"
cd /opt

if [ ${GIT_BRANCH} != "master" ]; then
  echo git clone ${GIT_REPO} --branch ${GIT_BRANCH} --single-branch
  git clone ${GIT_REPO} --branch ${GIT_BRANCH} --single-branch
else
  echo git clone ${GIT_REPO}
  git clone ${GIT_REPO}
fi

echo "cd ds3_net_sdk"
cd ds3_net_sdk

make test


#!/bin/bash
echo using Git Repo: ${GIT_REPO:="https://github.com/SpectraLogic/ds3_net_sdk.git"}
echo Using Git Branch: ${GIT_BRANCH:="master"}

echo DS3_ENDPOINT ${DS3_ENDPOINT}
echo DS3_SECRET_KEY ${DS3_SECRET_KEY}
echo DS3_ACCESS_KEY ${DS3_ACCESS_KEY}

set -x

cd /opt

if [ ${GIT_BRANCH} != "master" ]; then
  git clone ${GIT_REPO} --branch ${GIT_BRANCH} --single-branch
else
  git clone ${GIT_REPO}
fi

cd ds3_net_sdk
git rev-parse HEAD

make test


Print the git revision hash before running tests in docker container
Print the git revision hash before running tests in docker container
