Install a Local CI engine
Local CI Hooks
This script adds Git hooks to your repository to run the tests automatically while pushing commits to your remotes. The idea is to avoid pushing broken code to your remotes, automatising the process of verification.
pip install local_ci_hooks
Run the script in a repository:
This will install the pre-push hook for you. Also, it will create a file
.local_ci.sh with a dummy test. You can set your test commands
in this file.
To uninstall the hook:
For modifying the CI, please, take into consideration the following
.local_ci.sh example files.
#!/bin/bash npm install || exit 1 npm run test || exit 1 exit 0
#!/bin/bash pip install --prefix ./build . || exit 1 export PATH="./build/bin:$PATH" export LD_LIBARY_PATH="./build/lib:$LD_LIBRARY_PATH" pytest . || exit 1 pip uninstall <your project> exit 0
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size local_ci_hooks-0.1.1.2.tar.gz (2.8 kB)||File type Source||Python version None||Upload date||Hashes View|