2018-01-05 22:58:59 +03:00
|
|
|
## 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%
|
2018-06-19 13:06:29 +03:00
|
|
|
# Node.js 8 comes with an npm that doesn't support "npm ci"
|
|
|
|
- IF %nodejs_version% EQU 8 npm install -g npm@^5.7.1
|
|
|
|
- npm ci
|
2018-01-05 22:58:59 +03:00
|
|
|
|
|
|
|
matrix:
|
|
|
|
fast_finish: true
|
|
|
|
|
|
|
|
build: off
|
|
|
|
shallow_clone: true
|
|
|
|
|
|
|
|
# Keep the following configs in sync with .travis.yml
|
|
|
|
environment:
|
|
|
|
matrix:
|
|
|
|
- nodejs_version: '8'
|
2018-05-07 13:46:19 +03:00
|
|
|
- nodejs_version: '10'
|
2018-01-05 22:58:59 +03:00
|
|
|
|
|
|
|
test_script:
|
|
|
|
- node --version
|
|
|
|
- npm --version
|
|
|
|
### This npm script will execute the same tests executed by test-ci
|
|
|
|
### but it skips coveralls (which is not currently recognized when
|
|
|
|
### used from appveyor).
|
2018-06-19 13:06:29 +03:00
|
|
|
- npm run test-coverage-once
|
2018-01-05 22:58:59 +03:00
|
|
|
### Building the dist file is needed by the linting step.
|
2018-06-19 13:06:29 +03:00
|
|
|
- npm run build
|
|
|
|
- npm run lint
|
2018-02-26 05:22:55 +03:00
|
|
|
# run integration tests using an addons-linter binary in a production-like environment
|
2018-06-19 13:06:29 +03:00
|
|
|
- npm run test-integration:production
|