Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
cubicweb
cubes
squareui
Commits
d467b5566309
Commit
9f8ffdd5
authored
Nov 24, 2020
by
Laurent Peuch
Browse files
chore(tox): add deb-publish
parent
d4dff1b8354f
Pipeline
#21995
passed with stage
in 2 minutes and 46 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
tox.ini
View file @
d467b556
...
...
@@ -48,3 +48,21 @@ 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}@jenkins.intra.logilab.fr/job/pkg-from-dsc/buildWithParameters
DIST
=
buster source.zip@dist/latest.zip REPO=buster PUBLISH=true
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment