Skip to content

Instantly share code, notes, and snippets.

@jmvrbanac
Last active August 29, 2015 13:56
Show Gist options
  • Save jmvrbanac/8812274 to your computer and use it in GitHub Desktop.
Save jmvrbanac/8812274 to your computer and use it in GitHub Desktop.
CloudCAFE Jenkins Script
#!/bin/bash
set +x
# Setup all of the pyenvs
export PATH="$HOME/.pyenv/bin:$PATH"
export CONFIGURE_OPTS='--enable-shared'
eval "$(pyenv init -)"
pyenv shell 2.7.6
pyenv virtualenvwrapper
pyenv rehash
# Clean up virtualenv
# rmvirtualenv cc_api_job
# Make virtualenv
mkvirtualenv cc_api_job
CONFIG="$VIRTUAL_ENV/.opencafe/configs/product_name/reference.config"
if [ -d $CONFIG ]; then
rm $CONFIG
fi
# Install CloudCAFE Components
pip install opencafe/ --upgrade
pip install cloudcafe/ --upgrade
pip install cloudroast/ --upgrade
cafe-config plugins install skip_on_issue
# Run Tests
cafe-runner ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment