Commit 84c4e155 authored by Arthur Lutz's avatar Arthur Lutz
Browse files

chore(gitlab-ci): use templates and tox similar to other projects

parent 2d7490cb5c4f
Pipeline #76549 passed with stages
in 4 minutes and 45 seconds
......@@ -10,7 +10,6 @@ include:
- "templates/lint/flake8.yml" # will do the equivalent of 'tox -e flake8'
- "templates/lint/check-manifest.yml" # will do the equivalent of 'tox -e check-manifest'
- "templates/lint/yamllint.yml" # will do the equivalent of 'tox -e yamllint'
- "templates/tests/py27.yml" # will do the equivalent of 'tox -e py27'
- "templates/tests/py3.yml" # will do the equivalent of 'tox -e py3'
- "templates/create-release-on-heptapod.yml" # this will create a release on heptapod
- "templates/upload-to-pypi.yml" # on a new mercurial tag (expected to be done with release-new), will push a release on pypi
......
......@@ -6,6 +6,8 @@ recursive-include cubicweb_s3storage/i18n *.po
recursive-include cubicweb_s3storage/wdoc *
recursive-include test/data bootstrap_cubes *.py
include tox.ini
include dev-requirements.txt
recursive-include debian changelog compat control copyright rules
include cubicweb-s3storage.spec
exclude .gitlab-ci.yml
exclude .yamllint
......
......@@ -16,7 +16,7 @@ options = (
'help': 'Add a temporary suffix to S3 keys during transaction',
'group': 's3',
'level': 2}),
)
)
class STKEY(FunctionDescr):
......
git+https://github.com/psycojoker/pytest-capture-deprecatedwarnings
mock
moto
[tox]
envlist = py27,py3,flake8,check-manifest,yamllint
envlist = py3,flake8,check-manifest,yamllint
[testenv]
deps =
pytest
boto3
moto
py27: cubicweb<3.27
git+https://github.com/psycojoker/pytest-capture-deprecatedwarnings
-rdev-requirements.txt
commands =
{envpython} -m pytest {posargs:test}
{envpython} -m pytest {posargs:-vvx}
[pytest]
python_files = *test_*.py
testpaths = test
addopts = -r fEs
[testenv:check-manifest]
skip_install = true
......@@ -20,15 +22,16 @@ commands =
{envpython} -m check_manifest
[testenv:flake8]
basepython = python3
skip_install = true
whitelist_externals =
flake8
deps =
flake8
commands = flake8
commands = {envpython} -m flake8 {toxinidir} {posargs}
[flake8]
exclude = cubicweb_s3storage/migration/*,test/data/*,.tox/*
max-line-length = 100
ignore = E731,W503
exclude = cubicweb_s3storage/__pkginfo__.py,cubicweb_s3storage/migration/*,test/data/*,.tox/*
[testenv:pypi-publish]
basepython = python3
......
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