forked from tc39/eshost
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
81 lines (74 loc) · 2.16 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
version: "{build}"
clone_depth: 1
environment:
# Shells
ESHOST_SKIP_CH: 1
ESHOST_SKIP_D8: 1
ESHOST_SKIP_ENGINE262: 1
ESHOST_SKIP_GRAALJS: 1
ESHOST_SKIP_HERMES: 1
ESHOST_SKIP_JSC: 1
ESHOST_SKIP_JSSHELL: 1
ESHOST_SKIP_LIBJS: 1
ESHOST_SKIP_NODE: 1
ESHOST_SKIP_QJS: 1
ESHOST_SKIP_XS: 1
# Browsers
ESHOST_SKIP_CHROME: 1
ESHOST_SKIP_FIREFOX: 1
ESHOST_SKIP_REMOTE: 1
matrix:
- nodejs_version: 12
- nodejs_version: 14
- nodejs_version: 16
platform:
- x64
- x86
install:
- ps: Install-Product node $env:nodejs_version
- set ESHOST_PATH=%CD%
- mkdir hosts
# Engine262: Clone, Build, Link and set PATH
- mkdir engine262
- git clone https://github.com/engine262/engine262.git engine262
- cd %CD%\engine262
- npm install
- npm run build
- npm link
- set ESHOST_ENGINE262_PATH=C:\Users\appveyor\AppData\Roaming\npm\
- set PATH=%PATH%;C:\Users\appveyor\AppData\Roaming\npm\
- where engine262
- set ESHOST_SKIP_ENGINE262=0
- cd %ESHOST_PATH%\hosts
# SpiderMonkey: Curl, Unzip and set PATH
- mkdir spidermonkey
- curl -fsS -o spidermonkey\jsshell-win64.zip https://archive.mozilla.org/pub/firefox/nightly/latest-mozilla-central/jsshell-win64.zip
- 7z e -o%CD%\spidermonkey spidermonkey\jsshell-win64.zip
- set PATH=%PATH%;%CD%\spidermonkey\
- set ESHOST_JSSHELL_PATH=%CD%\spidermonkey\
- where js
- set ESHOST_SKIP_JSSHELL=0
# ChakraCore: Clone, Build and set PATH
# TEMPORARILY DISABLED!
# ChakraCore is failing to build on windows, which is not a requirement of this project.
# - mkdir chakracore
# - git clone --branch v1.11.11 https://github.com/Microsoft/ChakraCore.git chakracore
# - msbuild /p:Platform=%PLATFORM% /p:Configuration=Debug %CD%\chakracore\Build\Chakra.Core.sln
# - set PATH=%PATH%;%CD%\chakracore\Build\VcBuild\bin\%PLATFORM%_debug
# - cd %CD%\chakracore\Build\VcBuild\bin\%PLATFORM%_debug
# - where ch
# - set ESHOST_SKIP_CH=0
# Return to eshost dir
- cd %ESHOST_PATH%
- where node
- set ESHOST_SKIP_NODE=0
- echo %PATH%
- node -v
- npm install -g npm
- npm install
build: off
test_script:
- ps: "npm run lint # PowerShell"
- cmd: npm test
matrix:
fast_finish: true