Skip to content

Instantly share code, notes, and snippets.

@libert-xyz
Created April 20, 2017 01:10
Show Gist options
  • Save libert-xyz/b557f287dbcb8c9c21dea40242124ade to your computer and use it in GitHub Desktop.
Save libert-xyz/b557f287dbcb8c9c21dea40242124ade to your computer and use it in GitHub Desktop.
Build a flask app in Jenkins
PATH=$WORKSPACE/venv/bin:/usr/local/bin:$PATH
if [ ! -d "venv" ]; then
virtualenv venv
fi
. venv/bin/activate
pip install -r requirements.txt
. venv/bin/activate
nose2 --plugin nose2.plugins.junitxml --junit-xml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment