aboutsummaryrefslogtreecommitdiffstats
path: root/appveyor.yml
diff options
context:
space:
mode:
authorBoris Kostenko <limexp@mail.ru>2017-10-09 07:57:01 +0800
committerGitHub <noreply@github.com>2017-10-09 07:57:01 +0800
commitd9004813d8b08c995787c2e614730b2b986186f0 (patch)
treeb052963438e9ec5cd3d364b2a7373fdf7f252662 /appveyor.yml
parent6c09e32c3fff143bd71d82d54d8599bee231222a (diff)
downloaddexon-solidity-d9004813d8b08c995787c2e614730b2b986186f0.tar.gz
dexon-solidity-d9004813d8b08c995787c2e614730b2b986186f0.tar.zst
dexon-solidity-d9004813d8b08c995787c2e614730b2b986186f0.zip
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.
Diffstat (limited to 'appveyor.yml')
-rw-r--r--appveyor.yml15
1 files changed, 10 insertions, 5 deletions
diff --git a/appveyor.yml b/appveyor.yml
index b50681b9..c63414b3 100644
--- a/appveyor.yml
+++ b/appveyor.yml
@@ -47,10 +47,12 @@ environment:
#init:
# - ps: iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
install:
- - ps: $fileContent = "-----BEGIN RSA PRIVATE KEY-----`n"
- - ps: $fileContent += $env:priv_key.Replace(' ', "`n")
- - ps: $fileContent += "`n-----END RSA PRIVATE KEY-----`n"
- - ps: Set-Content c:\users\appveyor\.ssh\id_rsa $fileContent
+ - ps: if ($env:priv_key) {
+ $fileContent = "-----BEGIN RSA PRIVATE KEY-----`n";
+ $fileContent += $env:priv_key.Replace(' ', "`n");
+ $fileContent += "`n-----END RSA PRIVATE KEY-----`n";
+ Set-Content c:\users\appveyor\.ssh\id_rsa $fileContent
+ }
- git submodule update --init --recursive
- ps: $prerelease = "nightly."
- ps: $prerelease += Get-Date -format "yyyy.M.d"
@@ -66,7 +68,10 @@ build_script:
- cd %APPVEYOR_BUILD_FOLDER%
- scripts\release.bat %CONFIGURATION%
- 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:
- cd %APPVEYOR_BUILD_FOLDER%