Skip to content

Instantly share code, notes, and snippets.

@lksv
Created October 21, 2016 09:17
Show Gist options
  • Save lksv/3db33882caa275630548fa1cbc5d5cdd to your computer and use it in GitHub Desktop.
Save lksv/3db33882caa275630548fa1cbc5d5cdd to your computer and use it in GitHub Desktop.
image: python:3.4
stages:
- build
- test
- e2e-test
- deploy
before_script:
# pip install -r requirements.txt
- which pip3 && pip3 install Flask-Cache pyflakes
- which pip3 && pip3 install pylint
pylint:
stage: test
script: |
FILES=$(find . -name "*.py" | grep -v "ci-scripts/")
pylint ${FILES}
pyflakes:
stage: test
script: |
FILES=$(find . -name "*.py" | grep -v "ci-scripts/")
python3 -m pyflakes ${FILES}
epydoc:
stage: test
image: python:2.7
script: |
pip install epydoc
epydoc -o epydoc_html server.py src
artifacts:
expire_in: 31 days
name: "epydoc-${CI_BUILD_NAME}-${CI_BUILD_REF_NAME}"
paths:
- epydoc_html/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment