mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-11-11 18:32:20 +08:00
3eb05713df
Summary: This updates the appveyor file to get the app building on windows too! See https://ci.appveyor.com/project/nylas/nylas-mail-all Test Plan: Run https://ci.appveyor.com/project/nylas/nylas-mail-all Reviewers: juan, spang, jerm Differential Revision: https://phab.nylas.com/D4000
41 lines
1.3 KiB
YAML
41 lines
1.3 KiB
YAML
version: '{build}'
|
|
|
|
branches:
|
|
only:
|
|
- master
|
|
- /ci.*/
|
|
- /stable.*/
|
|
|
|
# We need to only clone the main module because our submodule requires the
|
|
# encrypted ssh key to access submodules
|
|
install:
|
|
- ps: Install-Product node $env:NODE_VERSION
|
|
- ps: nuget install secure-file -ExcludeVersion
|
|
- ps: npm config set msvs_version 2013
|
|
|
|
# We need to extract the encrypted private ssh key to clone the submodule.
|
|
- ps: |
|
|
if ($env:DECRYPTION_PASSWORD) {
|
|
secure-file\tools\secure-file -decrypt packages\client-private-plugins\encrypted_certificates\appveyor\win-nylas-n1.p12.enc -secret $env:DECRYPTION_PASSWORD
|
|
secure-file\tools\secure-file -decrypt packages\client-private-plugins\encrypted_certificates\appveyor\set_win_env.ps1.enc -secret $env:DECRYPTION_PASSWORD
|
|
. packages\client-private-plugins\encrypted_certificates\appveyor\set_win_env.ps1
|
|
}
|
|
|
|
build_script:
|
|
- cmd: npm install
|
|
|
|
deploy_script:
|
|
- cmd: npm run build-client
|
|
|
|
environment:
|
|
matrix:
|
|
- NODE_VERSION: 6.9
|
|
PUBLISH_BUILD: true
|
|
global:
|
|
CERTIFICATE_FILE: .\packages\client-private-plugins\encrypted_certificates\appveyor\win-nylas-n1.p12
|
|
DECRYPTION_PASSWORD:
|
|
secure: 48VSzDtdBd52Xlo3TZ1NeR1yRRrZ3AU6Px5XjD5RDp44cFU5GYVspecGqX6DGCV7i0D7nldGMyEbXNrjM1t1Kw==
|
|
|
|
cache:
|
|
- packages\client-app\node_modules -> packages\client-app\package.json
|
|
- '%USERPROFILE%\.npm'
|