Skip to content

Instantly share code, notes, and snippets.

@astagi
Last active August 29, 2015 14:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save astagi/11306978 to your computer and use it in GitHub Desktop.
Save astagi/11306978 to your computer and use it in GitHub Desktop.
Jenkins build script for GAE + Virtualenv
export GAEPATH=/your/path/for/google_appengine
export PATH=$PATH:$GAEPATH
export PATH=$WORKSPACE/venv/bin:/usr/local/bin:$PATH
export PYENV_HOME=$WORKSPACE/.pyenv/
export PYTHONPATH=$PYTHONPATH:$GAEPATH
if [ -d $PYENV_HOME ]; then
rm -rf $PYENV_HOME
fi
virtualenv --no-site-packages $PYENV_HOME
. $PYENV_HOME/bin/activate
pip install -r requirements.txt
#Do your builds / tests here
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment