forked from mozilla/web-ext
-
Notifications
You must be signed in to change notification settings - Fork 1
/
appveyor.yml
43 lines (39 loc) · 1.37 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
## Force 64bit platform and nodejs, the addons-linter has dependencies which
## do not provide a pre-compiled 32bit version of their nodejs binary module.
platform: x64
install:
- ps: Install-Product node $env:nodejs_version x64
- set CI=true
- set PATH=%APPDATA%\npm;%PATH%
- npm install
matrix:
fast_finish: true
build: off
shallow_clone: true
# Keep the following configs in sync with .travis.yml
environment:
matrix:
- nodejs_version: '6'
- nodejs_version: '8'
test_script:
- node --version
- npm --version
- set COVERAGE=y
- set NODE_ENV=production
- npm run test
## install the eslint version needed by eslint and run functional test suite
## (See #1082 for rationale).
## run functional test suite in a npm production environment
## (See #1082 for rationale).
- npm run copy-dist-files-to-artifacts-dir
- cd artifacts\production
## NOTE: by setting the configured python to a batch file that exits with an error,
## we are forcing the production mode tests to fail if any of the dependencies is
## a binary dependency that is built using node-gyp.
- echo "exit /b 1" > C:\Python-forbidden-in-production-install.cmd
- npm config set python C:\Python-forbidden-in-production-install.cmd
- npm install --production
- cd ..\..
- npm config delete python
- set TEST_WEB_EXT_BIN=artifacts\production\bin\web-ext
- npm run test:functional