1 | # Test against the latest version of this Node.js version
|
2 | environment:
|
3 | matrix:
|
4 | # node.js
|
5 | - nodejs_version: "0.12"
|
6 | - nodejs_version: "4"
|
7 | - nodejs_version: "6"
|
8 | - nodejs_version: "8"
|
9 |
|
10 | # Install scripts. (runs after repo cloning)
|
11 | install:
|
12 | # Get the latest stable version of Node.js or io.js
|
13 | - ps: Install-Product node $env:nodejs_version
|
14 | # install modules
|
15 | - npm install
|
16 |
|
17 | # Post-install test scripts.
|
18 | test_script:
|
19 | # Output useful info for debugging.
|
20 | - node --version
|
21 | - npm --version
|
22 | # run tests
|
23 | - npm test
|
24 |
|
25 | # Don't actually build.
|
26 | build: off
|