#!/usr/bin/env bash

BRANCH=${TRAVIS_PULL_REQUEST_BRANCH:-$TRAVIS_BRANCH}
ENGINES_DIR=../stash_engines

mkdir ${ENGINES_DIR} && \
  cd ${ENGINES_DIR} && \
  git clone https://github.com/CDLUC3/stash_engine.git && \
  cd stash_engine && \
  git checkout ${BRANCH}

REVISION=$(git rev-parse HEAD)
echo "Checked out stash_engine branch ${BRANCH}, revision ${REVISION}"

#!/usr/bin/env bash

BRANCH=${TRAVIS_PULL_REQUEST_BRANCH:-$TRAVIS_BRANCH}
ENGINES_DIR=$(realpath ../stash_engines)

mkdir ${ENGINES_DIR} && \
  cd ${ENGINES_DIR}

git clone https://github.com/CDLUC3/stash_engine.git && \
  cd stash_engine && \
  git checkout ${BRANCH}

SE_REVISION=$(git rev-parse HEAD)
echo "Checked out stash_engine branch ${BRANCH}, revision ${SE_REVISION}"

Use absolute path to engines directory
Use absolute path to engines directory
