This repository has been archived by the owner on Mar 31, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
/
appveyor.yml
82 lines (72 loc) · 1.92 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
78
79
80
81
82
image: Visual Studio 2015
environment:
matrix:
- nodejs_version: "7"
- nodejs_version: "8.9.4"
- nodejs_version: "7.4"
ELECTRON: "1.7.0"
- nodejs_version: "8.9.4"
ELECTRON: "2.0.5"
- nodejs_version: "10.13.0"
ELECTRON: "3.0.13"
- nodejs_version: "10.13.0"
- nodejs_version: "10.11.0"
ELECTRON: "4.2.9"
- nodejs_version: "12.4.0"
ELECTRON: "6.0.9"
- nodejs_version: "12.4.0"
- node_js_version: "12.8.1"
ELECTRON: "7.3.1"
matrix:
fast_finish: true
platform:
- x64
configuration:
- Release
install:
- ps: |
Install-Product node $env:nodejs_version x64
if ($env:ELECTRON) {
$env:npm_config_target=$env:ELECTRON
$env:npm_config_disturl="https://atom.io/download/electron"
$env:npm_config_runtime="electron"
$env:npm_config_build_from_source="true"
}
- cmd: |
cd %APPVEYOR_BUILD_FOLDER%\fuzzy-native
npm install --force
npm run build
- cmd: |
cd %APPVEYOR_BUILD_FOLDER%\keytar
npm install --force
npm run build
- cmd: |
cd %APPVEYOR_BUILD_FOLDER%\pty
npm install --force
npm run tsc
npm run build
test_script:
- cmd: |
cd %APPVEYOR_BUILD_FOLDER%\fuzzy-native
IF NOT DEFINED ELECTRON (npm test)
node_modules/.bin/node-pre-gyp package testpackage
- cmd: |
cd %APPVEYOR_BUILD_FOLDER%\keytar
IF NOT DEFINED ELECTRON (npm test)
node_modules/.bin/node-pre-gyp package testpackage
- cmd: |
cd %APPVEYOR_BUILD_FOLDER%\pty
IF NOT DEFINED ELECTRON (npm test)
node_modules/.bin/node-pre-gyp package testpackage
build: off
artifacts:
- path: '**\build\stage\*.tar.gz'
deploy:
description: $(appveyor_repo_tag_name)
provider: GitHub
auth_token:
secure: rdBc+YLCOY3cFD38CjEn4Z/b6uvCBFiwHAiLg5Lwzs2WoPS0uLTgrW2puQSV5oZp
artifact: /.*\.tar\.gz/
force_update: true
on:
appveyor_repo_tag: true