#! /usr/bin/env bash
set -e

# Make sure we are on master
# branch=$(git rev-parse --abbrev-ref HEAD)
# if [ "$branch" != master ]; then
#   echo "Won't build non-master branch (currently on $branch)."
#   exit -1
# fi

echo Verifying no unstaged code.
git diff --exit-code

echo Verifying no staged, but uncommitted code.
git diff --cached --exit-code

echo Verifying code
yarn ci
