set -e
# Skip chisel tests if the commit message says to
if [[ $TRAVIS_COMMIT_MESSAGE == *"[skip chisel tests]"* ]]; then
  exit 0
else
  git clone https://github.com/ucb-bar/chisel3.git
  mkdir -p chisel3/lib
  cp utils/bin/firrtl.jar chisel3/lib
  cd chisel3
  sbt clean test
fi
