chore(ci): check list of latest git tags for binary building

This commit is contained in:
HipsterBrown 2018-12-21 12:36:57 -05:00 • committed by Nick Hehr
parent 42860307c3
commit ff712b2f61
2 changed files with 3 additions and 3 deletions

View file

@ -64,7 +64,7 @@ before_install:
- PUBLISH_BINARY=false
- echo $TRAVIS_BRANCH
- echo `git describe --tags --always HEAD`
- if [[ $TRAVIS_BRANCH == `git describe --tags --always HEAD` ]]; then PUBLISH_BINARY=$BINARY_BUILDER; fi;
- if [[ $(git tag --points-at HEAD) =~ $TRAVIS_BRANCH ]]; then PUBLISH_BINARY=$BINARY_BUILDER; fi;
- echo "Publishing native platform Binary Package? ->" $PUBLISH_BINARY
install:

View file

@ -26,14 +26,14 @@ install:
"node platform@arch" = $(node -p 'process.platform + process.arch')
"npm version" = $(npm -v)
"APPVEYOR_REPO_COMMIT_MESSAGE" = $env:APPVEYOR_REPO_COMMIT_MESSAGE
"git latest tag" = "$(git describe --tags --always HEAD)"
"git latest tags" = "$(git tag --points-at HEAD)"
"appveyor_repo_tag" = $env:appveyor_repo_tag
} | Out-String | Write-Host;
# Check if we're building the latest tag, if so
# then we publish the binaries if tests pass.
- ps: >
if ($env:appveyor_repo_tag -match "true" -and ("$(git describe --tags --always HEAD)" -eq $env:appveyor_repo_tag_name)) {
if ($env:appveyor_repo_tag -match "true" -and ("$(git tag --points-at HEAD)" -match $env:appveyor_repo_tag_name)) {
$env:publish_binary = $env:binary_builder;
}
if ($env:publish_binary -eq "true") {