forked from Level/rocksdb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
40 lines (34 loc) · 1001 Bytes
/
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
build: false
skip_branch_with_pr: true
environment:
matrix:
- nodejs_version: "8"
- nodejs_version: "10"
- nodejs_version: "Current"
configuration: Release
platform:
- x64
install:
- SET PATH=C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin;%PATH%
- ps: Install-Product node $env:nodejs_version $env:platform
- SET PATH=%APPDATA%\npm;%APPVEYOR_BUILD_FOLDER%\node_modules\.bin;%PATH%
- npm i
test_script:
- node --version
- npm --version
- npm test
- ps: if ($env:nodejs_version -eq "Current") { npm run test-electron }
before_deploy:
- SET ARCHIVE_NAME=%APPVEYOR_REPO_TAG_NAME%-win32-%PLATFORM%.tar.gz
- npm run prebuild
- tar -zcvf "%ARCHIVE_NAME%" -C prebuilds .
- appveyor PushArtifact %ARCHIVE_NAME%
deploy:
- provider: GitHub
artifact: $(ARCHIVE_NAME)
auth_token:
secure: AjmYV2zeogfen7F6tXvR9PO1zynJVF/jhMCExQ9RMtqEHDMH8Frclym3GniZkEB0
draft: false
on:
appveyor_repo_tag: true
nodejs_version: "Current"