-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathappveyor.yml
executable file
·58 lines (47 loc) · 1.35 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
build: false
skip_branch_with_pr: true
image: Visual Studio 2017
environment:
matrix:
# - nodejs_version: "11"
- nodejs_version: "10"
- nodejs_version: "8"
- nodejs_version: "6"
NOW_TOKEN:
secure: DF3YDyyn4Yrrc5EtFTht9oVVKdMkXTvp+Fi6gRpAV0c=
configuration: Release
platform:
- x64
install:
- ps: Update-NodeJsInstallation (Get-NodeJsLatestBuild $env:nodejs_version) $env:platform;
- node --version
- npm --version
- npm install
before_test:
- ps: iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/set-screenresolution.ps1'))
- ps: Set-ScreenResolution 1920 1080
test_script:
- npm test
after_test:
- if defined APPVEYOR_REPO_TAG_NAME (
npm run rebuild &&
7z a -ttar %APPVEYOR_REPO_TAG_NAME%-win-%PLATFORM%.tar ui.node &&
7z a -tgzip %APPVEYOR_REPO_TAG_NAME%-win-%PLATFORM%.tar.gz %APPVEYOR_REPO_TAG_NAME%-win-%PLATFORM%.tar
)
artifacts:
- path: '**\*.tar.gz'
deploy:
- provider: GitHub
artifact: /.*\.gz/
draft: false
prerelease: true
auth_token:
secure: eMIAnmLDhZy2Sq/UAXB50fYr1C2BugaafN8XiV6Wur8wMvPLXWIuCKU7Jt/Y9Of6
on:
appveyor_repo_tag: true
nodejs_version: "10"
on_finish:
- if defined NOW_TOKEN (
cd tests\_snapshots &&
..\..\node_modules\.bin\now --public --token %NOW_TOKEN%
)