fix Appveyor PR test (issue #2272)

Resolve issue #2272. Skip bytecode compare if deploy key is not available. This is the case for PR builds.
This commit is contained in:
Boris Kostenko 2017-10-09 02:57:01 +03:00 committed by GitHub
parent 6c09e32c3f
commit d9004813d8

View File

@ -47,10 +47,12 @@ environment:
#init: #init:
# - ps: iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1')) # - ps: iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
install: install:
- ps: $fileContent = "-----BEGIN RSA PRIVATE KEY-----`n" - ps: if ($env:priv_key) {
- ps: $fileContent += $env:priv_key.Replace(' ', "`n") $fileContent = "-----BEGIN RSA PRIVATE KEY-----`n";
- ps: $fileContent += "`n-----END RSA PRIVATE KEY-----`n" $fileContent += $env:priv_key.Replace(' ', "`n");
- ps: Set-Content c:\users\appveyor\.ssh\id_rsa $fileContent $fileContent += "`n-----END RSA PRIVATE KEY-----`n";
Set-Content c:\users\appveyor\.ssh\id_rsa $fileContent
}
- git submodule update --init --recursive - git submodule update --init --recursive
- ps: $prerelease = "nightly." - ps: $prerelease = "nightly."
- ps: $prerelease += Get-Date -format "yyyy.M.d" - ps: $prerelease += Get-Date -format "yyyy.M.d"
@ -66,7 +68,10 @@ build_script:
- cd %APPVEYOR_BUILD_FOLDER% - cd %APPVEYOR_BUILD_FOLDER%
- scripts\release.bat %CONFIGURATION% - scripts\release.bat %CONFIGURATION%
- ps: $bytecodedir = git show -s --format="%cd-%H" --date=short - ps: $bytecodedir = git show -s --format="%cd-%H" --date=short
- ps: scripts\bytecodecompare\storebytecode.bat $Env:CONFIGURATION $bytecodedir # Skip bytecode compare if private key is not available
- ps: if ($env:priv_key) {
scripts\bytecodecompare\storebytecode.bat $Env:CONFIGURATION $bytecodedir
}
test_script: test_script:
- cd %APPVEYOR_BUILD_FOLDER% - cd %APPVEYOR_BUILD_FOLDER%