Commit c8236f88 authored by Nicola Spanti's avatar Nicola Spanti
Browse files

[gitlab] Add a file for Continuous Integration

parent a407d190eaec
Pipeline #26645 failed with stages
in 31 seconds
image: python:latest
stages:
- lint
- tests
- deploy
lint_py:
stage: lint
before_script:
- pip install tox
script:
- tox -e flake8
only:
changes:
- "*.py"
pytest:
stage: tests
script:
- python setup.py install
install:
stage: deploy
script:
- python setup.py install
...@@ -7,3 +7,5 @@ __pycache__ ...@@ -7,3 +7,5 @@ __pycache__
tmpdb-* tmpdb-*
build/ build/
dist/ dist/
*.whl
.tox/
[tox]
envlist = flake8,pytest
toxworkdir={env:TOX_WORK_DIR:.tox}
[testenv:flake8]
skip_install = true
basepython = python3
deps =
flake8
commands =
flake8
[flake8]
max-line-length = 80
exclude = .tox,.hg
[testenv:pytest]
basepython = python3
deps =
pytest
commands =
pytest test/
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