2017-02-22 07:11:16 +08:00
|
|
|
version: '{build}'
|
|
|
|
|
|
|
|
branches:
|
|
|
|
only:
|
|
|
|
- master
|
|
|
|
- /ci.*/
|
|
|
|
- /stable.*/
|
|
|
|
|
2017-08-12 01:06:14 +08:00
|
|
|
init:
|
|
|
|
- ps: $env:commit = $env:appveyor_repo_commit.SubString(0,8)
|
|
|
|
|
2017-02-22 07:11:16 +08:00
|
|
|
install:
|
|
|
|
- ps: Install-Product node $env:NODE_VERSION
|
2018-01-29 15:17:37 +08:00
|
|
|
- ps: npm config set msvs_version 2015
|
2017-02-22 07:11:16 +08:00
|
|
|
|
2017-09-04 08:17:00 +08:00
|
|
|
# Extract the codesigning certs, encrypted private ssh key
|
2017-02-22 07:11:16 +08:00
|
|
|
- ps: |
|
2017-09-04 08:23:45 +08:00
|
|
|
C:\OpenSSL-Win32\bin\openssl.exe aes-256-cbc -K $env:encrypted_faf2708e46e2_key -iv $env:encrypted_faf2708e46e2_iv -in app/build/resources/certs.tar.enc -out app/build/resources/certs.tar -d;
|
2017-09-04 08:17:00 +08:00
|
|
|
mkdir app/build/resources/certs;
|
|
|
|
tar xvf app/build/resources/certs.tar --directory=app/build/resources/;
|
|
|
|
|
|
|
|
# Clone the submodule
|
|
|
|
- ps: |
|
2017-09-04 08:33:56 +08:00
|
|
|
$env:GIT_SSH_COMMAND="ssh -q -i app/build/resources/certs/mailsync-deploy-key -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no";
|
|
|
|
git submodule update --init mailsync --quiet *>$null
|
2017-02-22 07:11:16 +08:00
|
|
|
|
|
|
|
build_script:
|
2017-09-04 08:17:00 +08:00
|
|
|
- cmd: cd .\mailsync && .\build.cmd && cd ..\
|
2017-08-11 14:56:36 +08:00
|
|
|
- cmd: npm install && npm run build
|
2017-08-11 17:13:02 +08:00
|
|
|
- cmd: node app/build/create-signed-windows-installer.js
|
2017-02-22 07:11:16 +08:00
|
|
|
|
2017-08-12 00:50:36 +08:00
|
|
|
before_deploy:
|
2017-10-17 00:56:53 +08:00
|
|
|
- cmd: 7z -ttar a dummy %APPVEYOR_BUILD_FOLDER%\app\dist\*.dll %APPVEYOR_BUILD_FOLDER%\app\dist\mailsync.exe -so | 7z -si -tgzip a .\app\dist\mailsync.tar.gz
|
2017-10-16 16:57:57 +08:00
|
|
|
- ps: Get-ChildItem .\app\dist\*.tar.gz | % { Push-AppveyorArtifact $_.FullName -FileName "win-ia32/$($_.Name)" -DeploymentName s3-deployment }
|
2017-10-17 10:12:10 +08:00
|
|
|
- ps: Get-ChildItem .\app\dist\MailspringSetup.exe | % { Push-AppveyorArtifact $_.FullName -FileName "win-ia32/$($_.Name)" -DeploymentName s3-deployment }
|
2017-08-12 00:50:36 +08:00
|
|
|
- ps: Get-ChildItem .\app\dist\*.nupkg | % { Push-AppveyorArtifact $_.FullName -FileName "win-ia32/$($_.Name)" -DeploymentName s3-deployment }
|
|
|
|
- ps: Get-ChildItem .\app\dist\RELEASES | % { Push-AppveyorArtifact $_.FullName -FileName "win-ia32/$($_.Name)" -DeploymentName s3-deployment }
|
2017-08-11 15:01:38 +08:00
|
|
|
|
|
|
|
deploy:
|
|
|
|
- provider: S3
|
2017-08-12 00:50:36 +08:00
|
|
|
name: s3-deployment
|
2017-08-11 15:01:38 +08:00
|
|
|
access_key_id: AKIAJQWOM4SPSY3TXI5Q
|
|
|
|
secret_access_key:
|
|
|
|
secure: XlLzz7sdvrtgi4g459NvxLfrH/+hOutb+0Osz29unfi4Zcw9N8H8SEaq6m3ZeWc+
|
|
|
|
region: us-east-1
|
2017-09-06 04:37:40 +08:00
|
|
|
bucket: mailspring-builds
|
2017-08-12 01:06:14 +08:00
|
|
|
folder: "client/$(commit)"
|
2017-08-11 15:01:38 +08:00
|
|
|
set_public: true
|
2017-12-12 16:04:20 +08:00
|
|
|
|
|
|
|
# Stop Appveyor from "Discovering Tests" forever
|
|
|
|
test: off
|
|
|
|
|
2017-02-22 07:11:16 +08:00
|
|
|
environment:
|
|
|
|
matrix:
|
2017-08-11 13:47:06 +08:00
|
|
|
- NODE_VERSION: 7.10
|
2017-02-22 07:11:16 +08:00
|
|
|
global:
|
2017-03-14 06:48:45 +08:00
|
|
|
SIGN_BUILD: true
|
2017-09-30 03:12:02 +08:00
|
|
|
WINDOWS_CODESIGN_CERT: .\app\build\resources\certs\win\win-codesigning.p12
|
|
|
|
WINDOWS_CODESIGN_CERT_PASSWORD:
|
|
|
|
secure: 3ddxqTBFv+xflIzypB0fNg==
|
2017-09-04 08:20:52 +08:00
|
|
|
encrypted_faf2708e46e2_key:
|
|
|
|
secure: mdegN/AldrADhtEop6mDwq6d4jUskzijK2X7Twf2lj9t3jdaW4OtMuJ5Ywyt+GN/N7qMFr7LOvxQ5gz4aoIW+Dg9d03AX3BH1o4BI6g+wdk=
|
|
|
|
encrypted_faf2708e46e2_iv:
|
|
|
|
secure: B2pwd1AlmQHjIpIau1NylfEMkwJJ5u7NhxgZcU8WicwP6+cmePnAacYIwpe1fXEf
|
2017-02-22 07:11:16 +08:00
|
|
|
|
|
|
|
cache:
|
2017-03-14 06:48:45 +08:00
|
|
|
- node_modules -> package.json
|
2017-08-12 00:33:21 +08:00
|
|
|
- app\node_modules -> app\package.json
|
2017-02-22 07:11:16 +08:00
|
|
|
- '%USERPROFILE%\.npm'
|