Merge pull request #798 from mbilker/appveyor-pr-no-secure

AppVeyor Use no secure variables in Pull Requests
This commit is contained in:
Ben Gotow 2015-12-29 12:33:31 -08:00
commit 72a624fe78

View file

@ -27,15 +27,19 @@ install:
- ps: nuget install secure-file -ExcludeVersion
# We need to extract the encrypted private ssh key to clone the submodule.
- ps: secure-file\tools\secure-file -decrypt build\resources\ssh\nylas-n1-ci-ssh-secure-file.enc -secret $env:DECRYPTION_PASSWORD
- ps: mv -Force build\resources\ssh\nylas-n1-ci-ssh-secure-file c:\users\appveyor\.ssh\id_rsa
- ps: git submodule init
# http://stackoverflow.com/questions/21002919/running-a-remote-powershell-script-with-a-git-command-in-it-results-in-nativecom
- ps: Start-Process -FilePath git.exe -ArgumentList 'submodule update' -Wait -NoNewWindow
- ps: |
if ($env:DECRYPTION_PASSWORD) {
secure-file\tools\secure-file -decrypt build\resources\ssh\nylas-n1-ci-ssh-secure-file.enc -secret $env:DECRYPTION_PASSWORD
mv -Force build\resources\ssh\nylas-n1-ci-ssh-secure-file c:\users\appveyor\.ssh\id_rsa
git submodule init
- ps: secure-file\tools\secure-file -decrypt build\resources\nylas\encrypted_certificates\appveyor\win-nylas-n1.p12.enc -secret $env:DECRYPTION_PASSWORD
- ps: secure-file\tools\secure-file -decrypt build\resources\nylas\encrypted_certificates\appveyor\set_win_env.ps1.enc -secret $env:DECRYPTION_PASSWORD
- ps: . build\resources\nylas\encrypted_certificates\appveyor\set_win_env.ps1
# http://stackoverflow.com/questions/21002919/running-a-remote-powershell-script-with-a-git-command-in-it-results-in-nativecom
Start-Process -FilePath git.exe -ArgumentList 'submodule update' -Wait -NoNewWindow
secure-file\tools\secure-file -decrypt build\resources\nylas\encrypted_certificates\appveyor\win-nylas-n1.p12.enc -secret $env:DECRYPTION_PASSWORD
secure-file\tools\secure-file -decrypt build\resources\nylas\encrypted_certificates\appveyor\set_win_env.ps1.enc -secret $env:DECRYPTION_PASSWORD
. build\resources\nylas\encrypted_certificates\appveyor\set_win_env.ps1
}
build_script:
- ps: .\script\cibuild.ps1