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:
|
2018-07-24 16:19:42 +00:00
|
|
|
- nodejs_version: "Current"
|
2017-01-28 10:15:51 +00:00
|
|
|
|
2018-08-07 09:57:33 +00:00
|
|
|
cache:
|
2018-08-07 09:58:53 +00:00
|
|
|
- '%LOCALAPPDATA%\\Yarn -> yarn.lock'
|
2017-10-19 09:51:48 +00:00
|
|
|
|
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-07-25 10:46:02 +00:00
|
|
|
- yarn test:fixtures -w=2
|
|
|
|
- yarn test:unit -w=2
|
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
|