Last active
February 10, 2018 01:35
-
-
Save gmanfunky/894b4c3adf31096a5202072bf78325d9 to your computer and use it in GitHub Desktop.
dumb flaker
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [ ! -d .venv ]; then | |
python3 -m virtualenv .venv | |
source .venv/bin/activate | |
pip install flake8 | |
else | |
source .venv/bin/activate | |
fi | |
CMD="flake8 --exclude .venv,.git,__pycache__ | tee flake_out.txt" | |
if [ -d "backend" ]; then | |
cd backend | |
bash -c "$CMD" | |
elif [ -d "src" ]; then | |
cd src | |
bash -c "$CMD" | |
else | |
bash -c "$CMD" | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Or maybe this is better: https://wiki.jenkins.io/display/JENKINS/Violation+Comments+to+GitHub+Plugin