pre-commit 431 B

1234567891011121314151617
  1. #!/bin/bash
  2. #
  3. # Runs test pipeline before commiting
  4. #
  5. # To enable this hook, rename this file to "pre-commit".
  6. echo
  7. echo "Running unit tests"
  8. echo
  9. python cdplib/unit_tests/TestFlattenData.py
  10. python cdplib/unit_tests/TestLog.py
  11. python cdplib/unit_tests/TestMongodbHandler.py
  12. echo
  13. echo
  14. echo -e "\033 Unit tests have been run and your data commited, in case any of the tests failed, please correct this before pushing changes"
  15. echo