Test fichier deploy

This commit is contained in:
Anthony Dumas 2019-10-13 15:41:29 +00:00
parent 92c16ec5e4
commit b9213586c0

View File

@ -7,8 +7,12 @@ LOCAL=$(git rev-parse @)
REMOTE=$(git rev-parse "$UPSTREAM")
BASE=$(git merge-base @ "$UPSTREAM")
if [ $LOCAL = $BASE ]; then
git stash
git pull
npm install
if [ $LOCAL = $REMOTE ]; then
echo "Up-to-date"
elif [ $LOCAL = $BASE ]; then
echo "Need to pull"
elif [ $REMOTE = $BASE ]; then
echo "Need to push"
else
echo "Diverged"
fi