-
Notifications
You must be signed in to change notification settings - Fork 3
/
.appveyor.yml
77 lines (66 loc) · 2.34 KB
/
.appveyor.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
version: "2.0.0.{build}"
platform: x64
init:
- git config --global core.autocrlf false
# TODO: Needs select-str to get version from package.json to save in env and update below
# - ps: Update-AppveyorBuild -Version "0.1.9-$($env:APPVEYOR_REPO_COMMIT.substring(0,7))-Windows"
# - set BUILDVER=%APPVEYOR_BUILD_VERSION%-$($env:APPVEYOR_REPO_COMMIT.substring(0,7))
cache:
- node_modules
- '%APPDATA%\npm-cache'
- '%USERPROFILE%\.electron'
environment:
access_token:
secure: "0muZEDVGEpw8OhnyWFnafYkUgrt+7kl6MdWEA2guW8oLX6s3dMoRrhQjuF3Sbpi5"
install:
#- ps: Update-NodeJsInstallation 12.16.1
- ps: Install-Product node LTS
- node --version
- git reset --hard HEAD
- rm -rf node_modules
- rm package-lock.json
- npm install --global npm@latest
- set PATH=%APPVEYOR_BUILD_FOLDER%/node_modules/.bin;%APPVEYOR_BUILD_FOLDER%/node_modules/;C:\Users\appveyor\AppData\Roaming\npm\node_modules;%PATH%
- npm install
build_script:
- npm test -- --runInBand
- electron-builder --publish never
# after_build:
# - ps: Get-ChildItem .\dist\*.exe | % { Push-AppveyorArtifact $_.FullName -FileName $_.Name -DeploymentName S3-public-deployment }
# Deploy to S3 only on new tag or master branch.
# See https://www.appveyor.com/docs/branches/
# deploy:
# - provider: S3
# name: S3-public-deployment
# on:
# APPVEYOR_REPO_TAG: true
# access_key_id:
# secure: Ftjof6Ssg2Mt94VyNcUSawjGKm7VKiHx35cGbXzqy58=
# secret_access_key:
# secure: z4agUrd9hU8g49gUaP5wiTxnOTpH7QSS+UQVCGQoW1rXYuW8/d8C7NAtiES7uFbt
# bucket: aptrust.public.download
# region: us-east-1
# set_public: true
# folder: DART
# reduced_redundancy: true
# - provider: S3
# name: S3-public-deployment
# on:
# branch: master
# access_key_id:
# secure: Ftjof6Ssg2Mt94VyNcUSawjGKm7VKiHx35cGbXzqy58=
# secret_access_key:
# secure: z4agUrd9hU8g49gUaP5wiTxnOTpH7QSS+UQVCGQoW1rXYuW8/d8C7NAtiES7uFbt
# bucket: aptrust.public.download
# region: us-east-1
# set_public: true
# folder: DART
# reduced_redundancy: true
test: off
notifications:
- provider: Slack
incoming_webhook:
secure: wQc/CYuw0WsjVvpj92QtP6//CzBNp/eFYpvlxiH6lIdhCbrh+cgQ3vExTygXJFA3xPg0attMwE/dOWipSS+vsk0EGsf0iipIaf/133/1RgQ=
on_build_success: false
on_build_failure: true
on_build_status_changed: true