mirror of
https://cagebreak.project-repo.co/cagebreak.git
synced 2026-08-09 15:19:11 +02:00
Add git tag check
This commit is contained in:
parent
9123464c3e
commit
b2e8bc7f5a
2 changed files with 17 additions and 0 deletions
|
|
@ -359,3 +359,4 @@ test('Semantic versioning', find_program('test/versions'), args : [ meson.projec
|
|||
test('Signature validity', find_program('test/gpg-signatures'), suite: 'release')
|
||||
test('Hashes.md', find_program('test/hashes-md'), args : [ meson.project_version() ], env : [ ''.join('MESONCURRENTCONFIGDIR=', meson.current_source_dir()) ], suite: 'release')
|
||||
test('Non-auto tests', find_program('test/non-auto-tests'), args : [ meson.project_version() ], env : [ ''.join('MESONCURRENTCONFIGDIR=', meson.current_source_dir()) ], suite: 'release')
|
||||
test('Git tag', find_program('test/git-tag'), args : [ meson.project_version() ], suite: 'release')
|
||||
|
|
|
|||
16
test/git-tag
Normal file
16
test/git-tag
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
#!/bin/bash
|
||||
# Copyright 2023, project-repo and the cagebreak contributors
|
||||
# SPDX-License-Identifier: MIT
|
||||
|
||||
VERSION=$1
|
||||
RESULT=0
|
||||
|
||||
if git tag -v "${VERSION}"
|
||||
then
|
||||
echo "[x] git tag"
|
||||
else
|
||||
RESULT=1
|
||||
echo "[ ] git tag"
|
||||
fi
|
||||
|
||||
exit "${RESULT}"
|
||||
Loading…
Add table
Add a link
Reference in a new issue