forked from gfcittolin/node-serialport
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathappveyor.yml
More file actions
61 lines (49 loc) · 1.85 KB
/
appveyor.yml
File metadata and controls
61 lines (49 loc) · 1.85 KB
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
# AppVeyor file
# http://www.appveyor.com/docs/appveyor-yml
os: unstable
# Fix line endings on Windows
init:
- git config --global core.autocrlf true
# environment variables
environment:
NODE_PRE_GYP_GITHUB_TOKEN:
secure: azLeMAlIn7bfsIjPriD3O8kg3/uLPNOnAE6FgwPvIT+MWSlMsG3giURb7SxQ01tB
matrix:
- nodejs_version: "0.10"
- nodejs_version: "0.12"
- nodejs_version: "4.2"
- nodejs_version: "5.1"
platform:
- x86
- x64
install:
- cmd: ECHO %nodejs_version%
- cmd: ECHO %platform%
- cmd: ECHO %APPVEYOR_REPO_COMMIT_MESSAGE%
- cmd: SET PATH=%cd%\node_modules\.bin\;%PATH%
- ps: Update-NodeJsInstallation (Get-NodeJsLatestBuild $env:nodejs_version) $env:platform
- cmd: IF %nodejs_version% LSS 1 npm -g install npm
- cmd: IF %nodejs_version% LSS 1 set PATH=%APPDATA%\npm;%PATH%
- cmd: SET COMMIT_MSG="%APPVEYOR_REPO_COMMIT_MESSAGE%"
- cmd: SET PUBLISH_BINARY=false
# Check to verify the branch is the same than latest tag, if so
# then we publish the binaries if everything else is successful.
- cmd: git describe --tags --always HEAD > _git_tag.tmp
- cmd: SET /p GIT_TAG=<_git_tag.tmp
- cmd: ECHO %GIT_TAG%
- cmd: ECHO %APPVEYOR_REPO_BRANCH%
- cmd: DEL _git_tag.tmp
- cmd: IF x%APPVEYOR_REPO_BRANCH%==x%GIT_TAG% SET PUBLISH_BINARY=true
# Or look for commit message containing `[publish binary]`
- cmd: IF not x%COMMIT_MSG:[publish binary]=%==x%COMMIT_MSG% SET PUBLISH_BINARY=true
- cmd: ECHO %PUBLISH_BINARY%
build_script:
- cmd: npm install --build-from-source --msvs_version=2013 --verbose
test_script:
- cmd: npm test
on_success:
- cmd: IF %PUBLISH_BINARY%==true (node-pre-gyp package 2>&1)
- cmd: IF %PUBLISH_BINARY%==true (node-pre-gyp-github publish --release 2>&1)
- cmd: IF %PUBLISH_BINARY% == true (node-pre-gyp clean)
- cmd: IF %PUBLISH_BINARY% == true (npm install --fallback-to-build=false)
deploy: OFF