Skip to content

Instantly share code, notes, and snippets.

@justinabrahms
Created November 5, 2013 00:02
Show Gist options
  • Star 7 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save justinabrahms/7311596 to your computer and use it in GitHub Desktop.
Save justinabrahms/7311596 to your computer and use it in GitHub Desktop.
Use a cached virtualenv during CI
VENV_DIR=`md5sum requirements/* | md5sum 2>&1 | awk '{print $1}'`
if [ -e $VENV_DIR ]; then
. /tmp/$VENV_DIR/bin/activate
else
virtualenv --no-site-packages /tmp/$VENV_DIR
. /tmp/$VENV_DIR/bin/activate
pip install --download-cache /var/lib/jenkins/.pip_download_cache -r requirements/ci.txt
fi
@gmcquillan
Copy link

Any use of awk in a test script gets my 👍

@dcolish
Copy link

dcolish commented Nov 5, 2013

needs moar awk

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment