Skip to content

Instantly share code, notes, and snippets.

@signed8bit
Created July 11, 2016 21:06
Show Gist options
  • Save signed8bit/441af7cccea4e98a40ee1d098ca9365c to your computer and use it in GitHub Desktop.
Save signed8bit/441af7cccea4e98a40ee1d098ca9365c to your computer and use it in GitHub Desktop.
DEVNET-1027 python-commit-job Script
#!/usr/bin/env bash
set -e
virtualenv .test_venv
source .test_venv/bin/activate
cd ${WORKSPACE}/${GERRIT_PROJECT}
pip install -r requirements-dev.txt
flake8 . > ${WORKSPACE}/flake8.log
py.test --junit-xml=${WORKSPACE}/nosetests.xml > ${WORKSPACE}/pytest.log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment