2017-01-28 10:15:51 +00:00
|
|
|
# Test against the latest version of this Node.js version
|
|
|
|
environment:
|
2017-08-17 17:49:17 +00:00
|
|
|
matrix:
|
|
|
|
- nodejs_version: "8"
|
2018-06-01 11:47:12 +00:00
|
|
|
# Temporary disabled
|
|
|
|
# - nodejs_version: "10"
|
2017-01-28 10:15:51 +00:00
|
|
|
|
2017-10-19 09:51:48 +00:00
|
|
|
cache:
|
|
|
|
- "%LOCALAPPDATA%\\Yarn"
|
|
|
|
- node_modules
|
|
|
|
|
2017-01-28 10:15:51 +00:00
|
|
|
# Install scripts. (runs after repo cloning)
|
|
|
|
install:
|
|
|
|
# Get the latest stable version of Node.js or io.js
|
|
|
|
- ps: Install-Product node $env:nodejs_version
|
|
|
|
# install modules
|
2017-06-03 08:04:37 +00:00
|
|
|
- yarn install
|
2017-01-28 10:15:51 +00:00
|
|
|
|
|
|
|
# Post-install test scripts.
|
|
|
|
test_script:
|
|
|
|
# Output useful info for debugging.
|
|
|
|
- node --version
|
2018-03-19 01:07:47 +00:00
|
|
|
# - npm --version
|
2017-06-03 08:04:37 +00:00
|
|
|
- yarn --version
|
2017-01-28 10:15:51 +00:00
|
|
|
# run tests
|
2018-03-19 01:07:47 +00:00
|
|
|
- yarn test
|
2017-01-28 10:15:51 +00:00
|
|
|
|
|
|
|
# Don't actually build.
|
|
|
|
build: off
|
2018-03-19 10:26:57 +00:00
|
|
|
|
|
|
|
# Do not build feature branch with open Pull Requests
|
|
|
|
skip_branch_with_pr: true
|