diff --git a/composer.json b/composer.json index b597c03..6243693 100644 --- a/composer.json +++ b/composer.json @@ -15,6 +15,8 @@ } }, "require": { + "phpunit/phpunit": "^10", + "php": "^8.1" }, "autoload": { "psr-4": { diff --git a/sbin/retag b/sbin/retag new file mode 100755 index 0000000..61a3e5b --- /dev/null +++ b/sbin/retag @@ -0,0 +1,18 @@ +#!/bin/bash +# -*- coding: utf-8 mode: sh -*- vim:sw=4:sts=4:et:ai:si:sta:fenc=utf-8 +source /etc/nulib.sh || exit 1 + +TAGS=( + 8.1 + 8.2 +) + +args=( + "refaire les tags en cas de mise à jour de la branche" +) +parse_args "$@"; set -- "${args[@]}" + +for tag in "${TAGS[@]}"; do + git tag -f "$tag" + git push -f origin "$tag" || die +done