-
Notifications
You must be signed in to change notification settings - Fork 1
/
appveyor.yml
136 lines (93 loc) · 3.44 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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
# Test against the latest version of this Node.js version
environment:
nodejs_version: "7"
DEBUG: "autoconf"
NPM_TOKEN:
secure: p6I7IcfVWhufrMLBwgQ2OQgMA/65tmLwryPmVr+zbRGpSUB/Kq/JPP/MSWmPNutQ
matrix:
- GYP_MSVS_VERSION: "auto"
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
- GYP_MSVS_VERSION: ""
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
- GYP_MSVS_VERSION: "2015"
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
- GYP_MSVS_VERSION: "auto"
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
- GYP_MSVS_VERSION: ""
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
- GYP_MSVS_VERSION: "2013"
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
- GYP_MSVS_VERSION: "2012"
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
- GYP_MSVS_VERSION: "2010"
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
#the official config for deploy
- GYP_MSVS_VERSION: "2017"
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
init:
- ps: >-
& { Echo "GYP_MSVS_VERSION='$env:GYP_MSVS_VERSION'" };
if (($env:GYP_MSVS_VERSION -ge 2012) -and ($env:GYP_MSVS_VERSION -lt 2015)) {
$env:TEST_NODE_GYP="0"
} else {
$env:TEST_NODE_GYP="1"
}
if (($env:APPVEYOR_REPO_TAG -eq 'true') -and ($env:GYP_MSVS_VERSION -eq 2017) -and ($env:APPVEYOR_IMAGE -eq 2017))
{
$env:SHOULD_PUBLISH="1"
};
install:
- ps: Install-Product node $env:nodejs_version
- cmd: >-
npm config set "//registry.npmjs.org/:_authToken=%NPM_TOKEN%" -q
SET NPM_TOKEN=
git submodule init
git submodule update
md C:\projects\windows-autoconf\logs
set > C:\projects\windows-autoconf\logs\set.log
npm -g install mocha > nul
npm link
tools\try_powershell.cmd > C:\projects\windows-autoconf\logs\vs-output.json
cd C:\projects & git clone https://github.com/node4good/gyp.js.git
cd C:\projects\gyp.js & npm link windows-autoconf
cd C:\projects & git clone https://github.com/refack/node-gyp.git
cd C:\projects\node-gyp & npm link windows-autoconf
cd C:\projects & git clone https://github.com/refack/build.git boost.build
build: off
test_script:
- cmd: >-
cd C:\projects\windows-autoconf
npm test 2> C:\projects\windows-autoconf\logs\windows-autoconf_err.log
- ps: >-
cd C:\projects\boost.build;
$s = Get-Content .\bootstrap.bat | select -Skip 1;
$s | Set-Content .\bootstrap.bat;
$s = Get-Content .\src\engine\build.bat | select -Skip 1;
$s | Set-Content .\src\engine\build.bat;
.\bootstrap.bat 2> C:\projects\windows-autoconf\logs\bootstrap_err.log
if (!(Test-Path bjam.exe)) {throw}
#- cmd: >-
# cd C:\projects\boost.build
#
# copy "C:\projects\boost.build\bootstrap.log" "C:\projects\windows-autoconf\logs\"
#
# cd test\test2
#
# ..\..\bjam 2> C:\projects\windows-autoconf\logs\bjam_err.log;
#
- cmd: >-
cd C:\projects\node-gyp
npm i > C:\projects\windows-autoconf\logs\node-gyp_npm.log
IF %TEST_NODE_GYP%==1 npm test 2> C:\projects\windows-autoconf\logs\node-gyp_err.log
- cmd: >-
cd C:\projects\gyp.js
npm i --ignore-scripts
node_modules\.bin\babel src -d lib
mocha 2> C:\projects\windows-autoconf\logs\gyp_js_err.log
deploy_script:
- cmd: >-
IF DEFINED SHOULD_PUBLISH npm publish
on_finish:
- ps: >-
cd C:\projects\windows-autoconf\logs\;
Get-Item *.* | %{ Push-AppveyorArtifact $_.FullName}