mirror of
https://github.com/siemens-mobile-hacks/node-serialport-bindings-cpp.git
synced 2026-11-26 02:47:17 +00:00
chore(ci): check list of latest git tags for binary building
This commit is contained in:
parent
42860307c3
commit
ff712b2f61
2 changed files with 3 additions and 3 deletions
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -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") {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue