lemonldap-ng/RELEASE

141 lines
3.5 KiB
Plaintext
Raw Permalink Normal View History

2011-03-07 10:25:52 +01:00
How to build a release for LemonLDAP::NG
========================================
The version
-----------
- The release version should be updated in the following location:
* changelog: change version in scripts/generate-changelog.pl and run it
2011-03-07 10:25:52 +01:00
* Main modules (Common.pm/Handler.pm/Portal.pm/Manager.pm)
* Makefile.PL for cross-dependencies
2022-09-12 13:49:10 +02:00
* codemeta.json
2011-03-07 10:25:52 +01:00
- Then update packages information with:
$ make clean && make cpan
2011-03-07 10:25:52 +01:00
- Version must also be updated in RPM and Debian build files
- rpm/lemonldap-ng.spec: update versions and add changelog entry
- debian/changelog: add changelog entry
2011-03-07 10:25:52 +01:00
Before release
--------------
- Run unit tests
$ make test
$ make LLNGTESTLDAP=1 LLNGTESTLDAP_SLAPD_BIN=/usr/local/openldap/libexec/slapd LLNGTESTLDAP_SLAPADD_BIN=/usr/local/openldap/sbin/slapadd LLNGTESTLDAP_SCHEMA_DIR=/usr/local/openldap/etc/openldap/schema/ test
2018-09-06 15:13:09 +02:00
- Update languages (needs a Transifex token)
$ ./scripts/download_translations
2011-03-07 10:25:52 +01:00
- Update documentation:
$ ./scripts/parameters-for-doc.pl > doc/sources/admin/parameterlist.rst
2011-03-23 15:54:14 +01:00
2018-05-24 14:49:35 +02:00
- Update changelog:
$ ./scripts/generate-changelog.pl
This update "changelog" file using GitLab issues (tags Bug, New feature,
Improvement)
2016-03-01 14:55:57 +01:00
- Update debian/changelog
launch just `dch -r` and force save (":w" and ot ":x")
2017-10-26 11:23:28 +02:00
- Check Debian packages quality
2018-03-13 18:48:29 +01:00
$ cme check dpkg
2017-10-26 11:23:28 +02:00
2021-07-26 11:23:47 +02:00
- Update doc/admin/documentation.rst to display vulnerable packaged versions
2022-02-09 20:14:51 +01:00
- Close the milestone on Gitlab and create a new one
For minor release
-----------------
2017-11-24 20:54:55 +01:00
- Go on gitlab and create a new tag: https://gitlab.ow2.org/lemonldap-ng/lemonldap-ng/tags/new
For major release
-----------------
2017-11-24 20:54:55 +01:00
- Go on gitlab and create a new branch: https://gitlab.ow2.org/lemonldap-ng/lemonldap-ng/branches/new
2011-03-07 10:25:52 +01:00
2017-11-24 20:54:55 +01:00
- Go on gitlab and create a new tag: https://gitlab.ow2.org/lemonldap-ng/lemonldap-ng/tags/new
2011-03-07 10:25:52 +01:00
Make the distribution
---------------------
2011-03-07 10:25:52 +01:00
- CPAN packages:
$ make clean && make cpan
2011-03-07 10:25:52 +01:00
- Tarball:
$ make clean && make dist
2014-06-29 22:18:39 +02:00
- RedHat packaging:
See rpm/README
- Debian packaging:
Create the debian specific tarball:
$ make clean && make debian-dist
Untar the debian archive and launch:
$ make debian-packages
Packages are in /tmp
Sign packages:
$ dpkg-sig -p --sign builder /tmp/*.deb
2011-03-07 10:25:52 +01:00
Upload the distribution
---------------------
2011-03-07 10:25:52 +01:00
- CPAN:
Upload modules tarballs (generated by make cpan)
2018-06-16 11:33:00 +02:00
- OW2 Release:
Upload dist and bundles on sftp://release-up.ow2.org/projects/lemonldap
2021-06-08 13:54:05 +02:00
- RPM: see rpm/README
- DEB:
2021-01-17 16:26:25 +01:00
The DEB repository is hosted on https://lemonldap-ng.org/deb
2017-06-08 18:27:08 +02:00
Copy all generated files (*.deb):
2021-01-17 16:26:25 +01:00
$ scp *.deb lemonldap-ng@lemonldap-ng.org:incoming/
2021-01-17 16:26:25 +01:00
On the server, add packages is the appropriate repository, for example:
$ aptly repo add 2.0 incoming/*
$ aptly repo add stable incoming/*
2021-01-17 16:26:25 +01:00
Publish repositories:
$ aptly publish update -gpg-key="57144D2148DD706967DBFF7C548B17BF81F18E7A" 2.0
$ aptly publish update -gpg-key="57144D2148DD706967DBFF7C548B17BF81F18E7A" stable
Remove files from incoming directory:
$ rm incoming/*
2011-03-07 10:25:52 +01:00
2017-06-08 18:27:08 +02:00
- Docker:
Build a new image from https://github.com/LemonLDAPNG/lemonldap-ng-docker
Tag image to latest
Upload on Docker hub
2011-03-07 10:25:52 +01:00
Site
----
2022-02-09 20:14:51 +01:00
- Update version in the download page (see website-landing-page repository)
2011-03-07 10:25:52 +01:00
Spread the word
---------------
2017-06-08 18:27:08 +02:00
- News on OW2 projects page: https://projects.ow2.org/bin/view/lemonldap-ng/
- Twitter account / Facebook page
2021-01-17 16:26:25 +01:00
- IRC channel subject and OW2 Rocket.Chat channel
2017-06-08 18:27:08 +02:00
- Mailing lists: lemonldap-ng-users / lemonldap-ng-announces
2011-03-07 10:25:52 +01:00
- Optional: blogs and news sites (LinuxFR, etc.)
2016-03-01 14:55:57 +01:00
After release
-------------
- Update debian/changelog
$ dch -v <New number>-1 (and write "New release")
- Update $VERSION anywhere