Skip to content

Instantly share code, notes, and snippets.

@justinabrahms
Created November 5, 2013 00:02
Show Gist options
  • Select an option

  • Save justinabrahms/7311596 to your computer and use it in GitHub Desktop.

Select an option

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
Copy Markdown

Any use of awk in a test script gets my 👍

@dcolish
Copy link
Copy Markdown

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