mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-11-24 02:49:07 +01:00
Compare commits
No commits in common. "ef94f4dd70b6ffd60732357409aff06e2135bd9c" and "1c42aa3a47ecd074c25903d991bcf1e19c26b230" have entirely different histories.
ef94f4dd70
...
1c42aa3a47
4 changed files with 13 additions and 153 deletions
116
.gitlab-ci.yml
116
.gitlab-ci.yml
|
@ -2,42 +2,15 @@ stages:
|
||||||
- tests
|
- tests
|
||||||
- build
|
- build
|
||||||
- publish
|
- publish
|
||||||
- release
|
|
||||||
|
|
||||||
variables:
|
variables:
|
||||||
DOC_BRANCH: doc
|
DOC_BRANCH: doc
|
||||||
DOC_REMOTE: https://gitlab-ci-token:${ACCESS_TOKEN}@${CI_SERVER_HOST}/${CI_PROJECT_PATH}.git
|
DOC_REMOTE: https://gitlab-ci-token:${ACCESS_TOKEN}@${CI_SERVER_HOST}/${CI_PROJECT_PATH}.git
|
||||||
PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip"
|
PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip"
|
||||||
PACKAGE_REGISTRY_URL: "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/${CI_PROJECT_NAME}/${CI_COMMIT_TAG}"
|
|
||||||
|
|
||||||
tests:bookworm:
|
|
||||||
image:
|
|
||||||
name: docker.io/brenard/ldapsaisie:bookworm
|
|
||||||
entrypoint: [""]
|
|
||||||
stage: tests
|
|
||||||
rules:
|
|
||||||
- changes:
|
|
||||||
- src/**/*.php
|
|
||||||
script:
|
|
||||||
- rm -fr vendor
|
|
||||||
- composer install
|
|
||||||
- service slapd start
|
|
||||||
- >
|
|
||||||
if [ "$GITLAB_CI" == "true" ]; then
|
|
||||||
./vendor/bin/phpstan analyse --no-interaction --configuration=.phpstan/config.neon --error-format=junit > tests-report-bookworm.xml
|
|
||||||
else
|
|
||||||
./vendor/bin/phpstan analyse --no-interaction --configuration=.phpstan/config.neon
|
|
||||||
fi
|
|
||||||
artifacts:
|
|
||||||
when: always
|
|
||||||
paths:
|
|
||||||
- tests-report-bookworm.xml
|
|
||||||
reports:
|
|
||||||
junit: tests-report-bookworm.xml
|
|
||||||
|
|
||||||
tests:bullseye:
|
tests:bullseye:
|
||||||
image:
|
image:
|
||||||
name: docker.io/brenard/ldapsaisie:bullseye
|
name: brenard/ldapsaisie:bullseye
|
||||||
entrypoint: [""]
|
entrypoint: [""]
|
||||||
stage: tests
|
stage: tests
|
||||||
rules:
|
rules:
|
||||||
|
@ -62,7 +35,7 @@ tests:bullseye:
|
||||||
|
|
||||||
tests:buster:
|
tests:buster:
|
||||||
image:
|
image:
|
||||||
name: docker.io/brenard/ldapsaisie:buster
|
name: brenard/ldapsaisie:buster
|
||||||
entrypoint: [""]
|
entrypoint: [""]
|
||||||
stage: tests
|
stage: tests
|
||||||
rules:
|
rules:
|
||||||
|
@ -88,7 +61,7 @@ tests:buster:
|
||||||
|
|
||||||
tests:stretch:
|
tests:stretch:
|
||||||
image:
|
image:
|
||||||
name: docker.io/brenard/ldapsaisie:stretch
|
name: brenard/ldapsaisie:stretch
|
||||||
entrypoint: [""]
|
entrypoint: [""]
|
||||||
stage: tests
|
stage: tests
|
||||||
rules:
|
rules:
|
||||||
|
@ -103,7 +76,7 @@ tests:stretch:
|
||||||
|
|
||||||
tests:jessie:
|
tests:jessie:
|
||||||
image:
|
image:
|
||||||
name: docker.io/brenard/ldapsaisie:jessie
|
name: brenard/ldapsaisie:jessie
|
||||||
entrypoint: [""]
|
entrypoint: [""]
|
||||||
stage: tests
|
stage: tests
|
||||||
rules:
|
rules:
|
||||||
|
@ -116,24 +89,8 @@ tests:jessie:
|
||||||
- rm -f .phplint-cache
|
- rm -f .phplint-cache
|
||||||
- /tmp/vendor/bin/phplint src
|
- /tmp/vendor/bin/phplint src
|
||||||
|
|
||||||
build:debian-stable:
|
|
||||||
image: docker.io/brenard/debian-python-deb:debian11
|
|
||||||
stage: build
|
|
||||||
cache:
|
|
||||||
paths:
|
|
||||||
- .cache/pip
|
|
||||||
rules:
|
|
||||||
- if: $CI_COMMIT_TAG != null && $CI_COMMIT_BRANCH == "master"
|
|
||||||
script:
|
|
||||||
- ./build-deb.sh --install-build-deps
|
|
||||||
- rm -fr dist/ldapsaisie-*
|
|
||||||
- dpkg-parsechangelog --format dpkg|awk '/ ldapsaisie /,0'|tail -n +3 > dist/release-notes.md
|
|
||||||
artifacts:
|
|
||||||
paths:
|
|
||||||
- dist/*
|
|
||||||
|
|
||||||
build:debian-sid:
|
build:debian-sid:
|
||||||
image: docker.io/brenard/debian-python-deb:debian11
|
image: brenard/debian-python-deb:debian11
|
||||||
stage: build
|
stage: build
|
||||||
cache:
|
cache:
|
||||||
paths:
|
paths:
|
||||||
|
@ -149,7 +106,7 @@ build:debian-sid:
|
||||||
|
|
||||||
build:snapshot:
|
build:snapshot:
|
||||||
stage: build
|
stage: build
|
||||||
image: docker.io/alpine
|
image: alpine
|
||||||
only:
|
only:
|
||||||
- master
|
- master
|
||||||
script:
|
script:
|
||||||
|
@ -160,7 +117,7 @@ build:snapshot:
|
||||||
|
|
||||||
build:doc:html:
|
build:doc:html:
|
||||||
stage: build
|
stage: build
|
||||||
image: docker.io/python:alpine
|
image: python:alpine
|
||||||
cache:
|
cache:
|
||||||
paths:
|
paths:
|
||||||
- .cache/pip
|
- .cache/pip
|
||||||
|
@ -191,7 +148,7 @@ build:doc:html:
|
||||||
build:doc:pdf:
|
build:doc:pdf:
|
||||||
stage: build
|
stage: build
|
||||||
image:
|
image:
|
||||||
name: docker.io/pink33n/html-to-pdf
|
name: pink33n/html-to-pdf
|
||||||
entrypoint: ["/bin/sh", "-c"]
|
entrypoint: ["/bin/sh", "-c"]
|
||||||
only:
|
only:
|
||||||
- master
|
- master
|
||||||
|
@ -207,7 +164,7 @@ build:doc:pdf:
|
||||||
build:doc:epub:
|
build:doc:epub:
|
||||||
stage: build
|
stage: build
|
||||||
image:
|
image:
|
||||||
name: docker.io/pandoc/core
|
name: pandoc/core
|
||||||
entrypoint: ["/bin/sh", "-c"]
|
entrypoint: ["/bin/sh", "-c"]
|
||||||
only:
|
only:
|
||||||
- master
|
- master
|
||||||
|
@ -225,7 +182,7 @@ build:doc:epub:
|
||||||
|
|
||||||
build:doc:append_additional_versions:
|
build:doc:append_additional_versions:
|
||||||
stage: build
|
stage: build
|
||||||
image: docker.io/python:alpine
|
image: python:alpine
|
||||||
only:
|
only:
|
||||||
- master
|
- master
|
||||||
needs:
|
needs:
|
||||||
|
@ -250,7 +207,7 @@ build:doc:append_additional_versions:
|
||||||
|
|
||||||
publish:doc:
|
publish:doc:
|
||||||
stage: publish
|
stage: publish
|
||||||
image: docker.io/alpine:latest
|
image: alpine:latest
|
||||||
only:
|
only:
|
||||||
- master
|
- master
|
||||||
needs:
|
needs:
|
||||||
|
@ -270,7 +227,7 @@ publish:doc:
|
||||||
|
|
||||||
publish:snapshot:
|
publish:snapshot:
|
||||||
stage: publish
|
stage: publish
|
||||||
image: docker.io/alpine:latest
|
image: alpine:latest
|
||||||
only:
|
only:
|
||||||
- master
|
- master
|
||||||
needs:
|
needs:
|
||||||
|
@ -284,44 +241,9 @@ publish:snapshot:
|
||||||
script:
|
script:
|
||||||
- rsync -atv ldapsaisie-snapshot.tar.gz $SSH_USER@$SSH_HOST:download/ldapsaisie-snapshot.tar.gz
|
- rsync -atv ldapsaisie-snapshot.tar.gz $SSH_USER@$SSH_HOST:download/ldapsaisie-snapshot.tar.gz
|
||||||
|
|
||||||
publish:debian-stable:
|
|
||||||
stage: publish
|
|
||||||
image: docker.io/debian:stable-slim
|
|
||||||
needs:
|
|
||||||
- build:debian-stable
|
|
||||||
rules:
|
|
||||||
- if: $CI_COMMIT_TAG != null && $CI_COMMIT_BRANCH == "master"
|
|
||||||
before_script:
|
|
||||||
- apt-get update
|
|
||||||
- apt-get install -y --no-install-recommends rsync openssh-client dupload
|
|
||||||
- eval $(ssh-agent -s)
|
|
||||||
- echo "$SSH_PRIVATE_KEY" | base64 -d | ssh-add -
|
|
||||||
- mkdir ~/.ssh
|
|
||||||
- echo "$SSH_HOST_KEY" | base64 -d > ~/.ssh/known_hosts
|
|
||||||
- echo "$DUPLOAD_CONFIG" | base64 -d > ~/.dupload.conf
|
|
||||||
script:
|
|
||||||
- echo "Publish stable debian packages on APT repository..."
|
|
||||||
- dupload --to debian-stable dist/ldapsaisie*changes
|
|
||||||
|
|
||||||
publish:gitlab:
|
|
||||||
stage: publish
|
|
||||||
image:
|
|
||||||
name: docker.io/alpine/httpie
|
|
||||||
entrypoint: ["/bin/sh", "-c"]
|
|
||||||
needs:
|
|
||||||
- build:debian-stable
|
|
||||||
rules:
|
|
||||||
- if: $CI_COMMIT_TAG != null && $CI_COMMIT_BRANCH == "master"
|
|
||||||
script:
|
|
||||||
- ./.gitlab/publish.sh
|
|
||||||
artifacts:
|
|
||||||
paths:
|
|
||||||
- dist/release-notes.md
|
|
||||||
- dist/release-files.txt
|
|
||||||
|
|
||||||
publish:debian-sid:
|
publish:debian-sid:
|
||||||
stage: publish
|
stage: publish
|
||||||
image: docker.io/debian:stable-slim
|
image: debian:stable-slim
|
||||||
only:
|
only:
|
||||||
- master
|
- master
|
||||||
needs:
|
needs:
|
||||||
|
@ -337,15 +259,3 @@ publish:debian-sid:
|
||||||
script:
|
script:
|
||||||
- echo "Publish Sid debian packages on APT repository..."
|
- echo "Publish Sid debian packages on APT repository..."
|
||||||
- dupload --to debian-sid dist/ldapsaisie*changes
|
- dupload --to debian-sid dist/ldapsaisie*changes
|
||||||
|
|
||||||
release:
|
|
||||||
stage: release
|
|
||||||
image:
|
|
||||||
name: registry.gitlab.com/gitlab-org/release-cli:latest
|
|
||||||
entrypoint: ["/bin/sh", "-c"]
|
|
||||||
needs:
|
|
||||||
- publish:gitlab
|
|
||||||
rules:
|
|
||||||
- if: $CI_COMMIT_TAG != null && $CI_COMMIT_BRANCH == "master"
|
|
||||||
script:
|
|
||||||
- ./.gitlab/release.sh
|
|
||||||
|
|
|
@ -1,14 +0,0 @@
|
||||||
#!/bin/sh
|
|
||||||
|
|
||||||
cd `dirname $0`/../dist
|
|
||||||
rm -f release-files.txt
|
|
||||||
touch release-files.txt
|
|
||||||
|
|
||||||
for file in *.deb
|
|
||||||
do
|
|
||||||
# The filename can contain only lowercase letters (a-z), uppercase letter (A-Z), numbers (0-9), dots (.),
|
|
||||||
# hyphens (-), or underscores (_).
|
|
||||||
filename=`echo $file|tr '~' '_'|tr '+' '_'|sed s/[^a-zA-Z0-9\.\_\-]//g`
|
|
||||||
https --ignore-stdin --check-status PUT "${PACKAGE_REGISTRY_URL}/${filename}" "JOB-TOKEN: $CI_JOB_TOKEN" "@$file"
|
|
||||||
echo $filename >> release-files.txt
|
|
||||||
done
|
|
|
@ -1,14 +0,0 @@
|
||||||
#!/bin/sh
|
|
||||||
|
|
||||||
echo "Creating a release for $CI_COMMIT_TAG"
|
|
||||||
|
|
||||||
cd `dirname $0`/../dist
|
|
||||||
|
|
||||||
|
|
||||||
CMD="release-cli create --name $CI_COMMIT_TAG --description release-notes.md --tag-name $CI_COMMIT_TAG"
|
|
||||||
for file in `cat release-files.txt`
|
|
||||||
do
|
|
||||||
CMD="$CMD --assets-link {\"name\":\"$file\",\"url\":\"${PACKAGE_REGISTRY_URL}/$file\"}"
|
|
||||||
done
|
|
||||||
|
|
||||||
$CMD
|
|
22
debian/changelog
vendored
22
debian/changelog
vendored
|
@ -1,25 +1,3 @@
|
||||||
ldapsaisie (4.2.0-1) stable; urgency=medium
|
|
||||||
|
|
||||||
* PHP 8.2 support
|
|
||||||
* LSconfig: add escape_key, explode_keys and implode_keys helper methods
|
|
||||||
* Improve LSldapObject::getDisplayValue() method to match with getValue() method's parameters
|
|
||||||
* Fix LSattribute::getDisplayValue() when called on updated attribute
|
|
||||||
* LSattr_ldap::date: replace unique format parameter by a list
|
|
||||||
* Fix some french translated messages
|
|
||||||
* Auth:
|
|
||||||
* LSauth: add filter_function parameter
|
|
||||||
* LSauthMethod::CAS: fix support of phpCAS >= 1.6.0 and patched Debian Buster 1.3.6-1+deb10u1 version
|
|
||||||
* Addons
|
|
||||||
* accesslog:
|
|
||||||
* Improve displaying changes attributes values
|
|
||||||
* Fix infinity loop problem handling entry renaming event with the same DN
|
|
||||||
* ftp: Remove PEAR Net_FTP dependency
|
|
||||||
* posix: Add deleteHomeDirectoryByFTP function
|
|
||||||
* supann: Add supannCMSIdEtiquette attribute support
|
|
||||||
* doc: switch format to Markdown & Mkdocs
|
|
||||||
|
|
||||||
-- Benjamin Renard <brenard@easter-eggs.com> Thu, 26 Oct 2023 11:55:52 +0200
|
|
||||||
|
|
||||||
ldapsaisie (4.1.0-1) unstable; urgency=medium
|
ldapsaisie (4.1.0-1) unstable; urgency=medium
|
||||||
|
|
||||||
* PHP8 compatibility
|
* PHP8 compatibility
|
||||||
|
|
Loading…
Reference in a new issue