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
elasticsearch
Commits
41402173fdb1
Commit
67ebe6fb
authored
Sep 07, 2020
by
Élodie Thiéblin
Browse files
[Makefile] Add makefile for cube publication
parent
8ef76515821f
Pipeline
#14508
passed with stage
in 4 minutes and 9 seconds
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
MANIFEST.in
View file @
41402173
...
...
@@ -11,3 +11,4 @@ include tox.ini
include .gitlab-ci.yml
prune debian
exclude cubicweb-elasticsearch.spec
exclude Makefile
Makefile
0 → 100644
View file @
41402173
VERSION
:=
$(
shell
python3 setup.py
--version
)
DEBVERSION
:=
$(
shell
dpkg-parsechangelog
-S
Version
)
PACKAGE_NAME
:=
$(
shell
python3 setup.py
--name
)
.PHONY
:
clean
clean
:
rm
-rf
dist
.PHONY
:
hg-clean
hg-clean
:
hg clean
--all
--dirs
--files
.PHONY
:
sdist
sdist
:
python3 setup.py sdist
.PHONY
:
pypi
pypi
:
hg-clean sdist
twine upload dist/
${PACKAGE_NAME}
-
${VERSION}
.tar.gz
.PHONY
:
deb-src
.ONESHELL
:
deb-src
:
clean hg-clean sdist
cd
dist
tar
xf
${PACKAGE_NAME}
-
${VERSION}
.tar.gz
cd
${PACKAGE_NAME}
-
${VERSION}
cp
-a
../../debian .
mk-origtargz
--rename
../
${PACKAGE_NAME}
-
${VERSION}
.tar.gz
dpkg-buildpackage
-us
-uc
--no-check-builddeps
--build
=
source
.PHONY
:
deb-zip
.ONESHELL
:
deb-zip
:
deb-src
cd
dist
dcmd zip latest.zip
*
.changes
.PHONY
:
publish-debian
.ONESHELL
:
publish-debian
:
deb-zip
http
-f
POST https://
${JENKINS_USER}
:
${JENKINS_TOKEN}
@jenkins.intra.logilab.fr/job/pkg-from-dsc/buildWithParameters
DIST
=
buster source.zip@dist/latest.zip
REPO
=
buster
PUBLISH
=
true
Write
Preview
Markdown
is supported
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