Commit 0cd2001c authored by Benjamin Winger's avatar Benjamin Winger

Added gitlab-ci.yml

parent af2691f5
image: python:3.6-slim
# Change pip's cache directory to be inside the project directory since we can
# only cache local items.
variables:
PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip"
# Pip's cache doesn't store the python packages
# https://pip.pypa.io/en/stable/reference/pip_install/#caching
#
# If you want to also cache the installed packages, you have to install
# them in a virtualenv and cache it as well.
cache:
paths:
- .cache/pip
- .venv/
before_script:
- python -V # Print out python version for debugging
- pip install virtualenv
- virtualenv .venv
- source .venv/bin/activate
install:
script:
- pip install -r requirements.txt
- python setup.py install
flake8:
script:
- pip install flake8
- flake8 --exclude .venv --max-line-length=88
pytest:
script:
- pip install pytest
- pip install -r requirements.txt
- pytest
#mypy:
# script:
# - pip install mypy
# - MYPYPATH=.venv/lib/python3.6/site-packages mypy bin/*.py portmod
black:
script:
- pip install black
- black --check **/*.py
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment