forked from node-webrtc/node-webrtc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild-appveyor.bat
68 lines (52 loc) · 1.47 KB
/
build-appveyor.bat
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
@ECHO OFF
SETLOCAL
SET EL=0
powershell Install-Product node $env:nodejs_version x64
IF %ERRORLEVEL% NEQ 0 GOTO ERROR
ECHO npm install
SET SKIP_DOWNLOAD=true
CALL npm install
IF %ERRORLEVEL% NEQ 0 GOTO ERROR
ECHO npm run lint
CALL npm run lint
IF %ERRORLEVEL% NEQ 0 GOTO ERROR
ECHO Test using Node 8
SET nodejs_version=8
CALL scripts\run-tests.bat
IF %ERRORLEVEL% NEQ 0 GOTO ERROR
ECHO Test using Node 10
SET nodejs_version=10
CALL scripts\run-tests.bat
IF %ERRORLEVEL% NEQ 0 GOTO ERROR
ECHO Test using Node 11
SET nodejs_version=11
CALL scripts\run-tests.bat
IF %ERRORLEVEL% NEQ 0 GOTO ERROR
ECHO Test using Node 12
SET nodejs_version=12
CALL scripts\run-tests.bat
IF %ERRORLEVEL% NEQ 0 GOTO ERROR
ECHO Test using Node 13
SET nodejs_version=13
CALL scripts\run-tests.bat
IF %ERRORLEVEL% NEQ 0 GOTO ERROR
ECHO Test Electron 4
CALL npm install --no-save [email protected]
CALL npm run test:electron
IF %ERRORLEVEL% NEQ 0 GOTO ERROR
ECHO Test Electron 5
CALL npm install --no-save [email protected]
CALL npm run test:electron
IF %ERRORLEVEL% NEQ 0 GOTO ERROR
ECHO node-pre-gyp package
CALL node_modules\.bin\node-pre-gyp package
IF %ERRORLEVEL% NEQ 0 GOTO ERROR
SET msvs_version=2017
IF NOT "%APPVEYOR_REPO_COMMIT_MESSAGE%" == "%APPVEYOR_REPO_COMMIT_MESSAGE:[publish binary]=%" (ECHO node-pre-gyp publish && CALL node_modules\.bin\node-pre-gyp --msvs_version=%msvs_version% publish)
IF %ERRORLEVEL% NEQ 0 GOTO ERROR
GOTO DONE
:ERROR
ECHO ERRORLEVEL^: %ERRORLEVEL%
SET EL=%ERRORLEVEL%
:DONE
EXIT /b %EL%