fix: testing behaviour for real

This commit is contained in:
Tobias Reisinger 2020-06-26 01:43:08 +02:00
parent c3ad561418
commit c41dd7e9fa

View file

@ -13,12 +13,13 @@ rm -rf $working_dir
mkdir -p $working_dir mkdir -p $working_dir
cd $working_dir cd $working_dir
target_branch=$(git rev-parse --abbrev-ref HEAD)
git clone --quiet ssh://git@git.serguzim.me:3022/emgauwa/controller.git controller || exit git clone --quiet ssh://git@git.serguzim.me:3022/emgauwa/controller.git controller || exit
pushd ./controller > /dev/null pushd ./controller > /dev/null
git checkout dev >/dev/null 2>&1 git checkout dev >/dev/null 2>&1
git checkout $(git rev-parse --abbrev-ref HEAD) >/dev/null 2>&1 git checkout $target_branch >/dev/null 2>&1
git checkout $2 >/dev/null 2>&1 git checkout $2 >/dev/null 2>&1
echo "Building controller on branch $(git rev-parse --abbrev-ref HEAD)" echo "Building controller on branch $(git rev-parse --abbrev-ref HEAD)"