You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

pre-commit.sh 202B

12345678910111213
  1. #!/usr/bin/env bash
  2. git stash --keep-index -q
  3. source ~/.virtualenvs/oscar/bin/activate
  4. ./run_tests.py
  5. TEST_RESULT=$?
  6. git stash pop -q
  7. [ $TEST_RESULT -ne 0 ] && echo "Tests failed" && exit 1
  8. exit 0