Commit 3fb2e76b authored by Arthur Lutz's avatar Arthur Lutz
Browse files

[tox] integrate targets from skeleton

parent 95e7754fe679
......@@ -16,7 +16,7 @@ skip_install = true
whitelist_externals =
flake8
deps =
flake8
flake8 >= 3.6
commands = flake8
[testenv:flake8-jenkins]
skip_install = true
......@@ -38,7 +38,26 @@ skipsdist = true
deps =
check-manifest
commands =
{envpython} -m check_manifest
{envpython} -m check_manifest {toxinidir}
[testenv:mypy]
deps =
mypy >= 0.761
commands = mypy --ignore-missing-imports cubicweb_%(cubename)s
[testenv:black]
basepython = python3
skip_install = true
deps =
black >= 19.10b0
commands = black --check .
[testenv:black-run]
basepython = python3
skip_install = true
deps =
black >= 19.10b0
commands = black --target py36 .
[testenv:pypi-publish]
basepython = python3
......@@ -54,3 +73,27 @@ commands =
python3 setup.py sdist bdist_wheel
twine check dist/*
twine upload --skip-existing dist/*
[testenv:deb-publish]
passenv = JENKINS_USER JENKINS_TOKEN
basepython = python3
skip_install = true
whitelist_externals =
rm
sh
hg
deps =
httpie
commands =
hg clean --all --dirs --files
rm -rf build dist .egg .egg-info
python3 setup.py sdist
sh -c "PACKAGE_NAME=$(python3 setup.py --name) && VERSION=$(python3 setup.py --version) && \
cd dist && \
tar xf $PACKAGE_NAME-$VERSION.tar.gz && \
cd $PACKAGE_NAME-$VERSION && \
cp -a {toxinidir}/debian . && \
mk-origtargz --rename ../$PACKAGE_NAME-$VERSION.tar.gz && \
dpkg-buildpackage -us -uc --no-check-builddeps --build=source "
sh -c "cd dist && dcmd zip latest.zip *.changes"
http -f POST https://{env:JENKINS_USER}:{env:JENKINS_TOKEN}@{env:JENKINS_FQDN}/job/pkg-from-dsc/buildWithParameters DIST=buster source.zip@dist/latest.zip REPO=buster PUBLISH=true
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