1234567891011121314151617 |
- #!/bin/bash
- #
- # Runs test pipeline before commiting
- #
- # To enable this hook, rename this file to "pre-commit".
- echo
- echo "Running unit tests"
- echo
- python cdplib/unit_tests/TestFlattenData.py
- python cdplib/unit_tests/TestLog.py
- python cdplib/unit_tests/TestMongodbHandler.py
- echo
- echo
- 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"
- echo
|