Skip to content

Commit

Permalink
i#2861 cronbuilds: Set custom version from tag on Appveyor
Browse files Browse the repository at this point in the history
We trigger a custom build by setting VERSION_NUMBER in Travis.
But Appveyor does not have access to that.
Here we extract that number from the git tag that the Travis build set.

Issue: #2861
  • Loading branch information
derekbruening committed Feb 10, 2020
1 parent 0815caa commit b5e4b6c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions suite/runsuite_wrapper.pl
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,11 @@
$ENV{'APPVEYOR_REPO_TAG'} eq 'true') {
# A package build.
my $build = "0";
# We trigger by setting VERSION_NUMBER in Travis.
# That sets a tag and we propagate the name into the Appveyor build from the tag:
if ($ENV{'APPVEYOR_REPO_TAG_NAME'} =~ /release_(.*)/) {
$ENV{'VERSION_NUMBER'} = $1;
}
if ($ENV{'VERSION_NUMBER'} =~ /-(\d+)$/) {
$build = $1;
}
Expand Down

0 comments on commit b5e4b6c

Please sign in to comment.