mirror of
https://github.com/reecetech/version-increment.git
synced 2025-12-21 06:25:44 +00:00
Add test for release_branch
This commit is contained in:
@@ -224,6 +224,22 @@ function init_repo {
|
|||||||
[[ "$output" = *"VERSION=1.2.4-pre.${short_ref}"* ]]
|
[[ "$output" = *"VERSION=1.2.4-pre.${short_ref}"* ]]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@test "does not append prerelease information if on a specified release_branch" {
|
||||||
|
init_repo
|
||||||
|
|
||||||
|
export current_version=1.2.3
|
||||||
|
export GITHUB_REF="refs/heads/releases"
|
||||||
|
export release_branch="releases"
|
||||||
|
|
||||||
|
run ../../version-increment.sh
|
||||||
|
|
||||||
|
print_run_info
|
||||||
|
[ "$status" -eq 0 ] &&
|
||||||
|
[[ "$output" != *"PRE_RELEASE_LABEL=pre."* ]] &&
|
||||||
|
[[ "$output" != *"VERSION=1.2.4-pre."* ]] &&
|
||||||
|
[[ "$output" = *"VERSION=1.2.4"* ]]
|
||||||
|
}
|
||||||
|
|
||||||
@test "appends prerelease information in pep440 compatible way when pep440 is true" {
|
@test "appends prerelease information in pep440 compatible way when pep440 is true" {
|
||||||
init_repo
|
init_repo
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user