Skip to content
Snippets Groups Projects
Commit 35f7de73 authored by Julien Girard-Satabin's avatar Julien Girard-Satabin Committed by Michele Alberti
Browse files

[release] Automate the update of tests during release

parent 20443d48
No related branches found
No related tags found
No related merge requests found
......@@ -42,11 +42,11 @@ PACKAGE_URL="https://git.frama-c.com/api/v4/projects/$(PROJECT_ID)/packages/gene
DESCRIPTION="$(shell sed -n -e "p;n;:next;/^##/Q;p;n;b next" CHANGES.md | perl -pe 's/\n/\\n/')"
release:
./update_version.sh
@echo -n $(DESCRIPTION)
@echo "Is the CHANGES.md correct for $(TAG) (y/n)?"
@read yesno; test "$$yesno" = y
echo $(TAG) > VERSION
./update_version.sh
dune-release tag $(TAG)
dune-release distrib --skip-build --skip-lint
curl --header "PRIVATE-TOKEN: $(GITLAB_TOKEN)" \
......
......@@ -14,3 +14,6 @@ sed -E -i 's/version = \x27([0-9]\.)+[0-9]\x27/version = \x27'${VERSION}'\x27/g'
sed -E -i 's/release = \x27([0-9]\.)+[0-9]\x27/release = \x27'${VERSION}'\x27/g' doc/conf.py
sed -E -i 's/CAISAR_VERSION: "([0-9]\.)+[0-9]"/CAISAR_VERSION: "'${VERSION}'"/g' .gitlab-ci.yml
sed -E -i 's/TAG: "([0-9]\.)+[0-9]"/TAG: "'${VERSION}'"/g' .gitlab-ci.yml
# Update version in tests
sed -E -i 's/([0-9]\.)+[0-9]/'${VERSION}'/g' tests/help.t
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment