1 | # Fix line endings in Windows. (runs before repo cloning)
|
2 | init:
|
3 | - git config --global core.autocrlf input
|
4 |
|
5 | # Test against these versions of Node.js.
|
6 | environment:
|
7 | matrix:
|
8 | - nodejs_version: "6"
|
9 | - nodejs_version: "5"
|
10 | - nodejs_version: "4"
|
11 | - nodejs_version: "1"
|
12 | - nodejs_version: "0.12"
|
13 | - nodejs_version: "0.11"
|
14 | - nodejs_version: "0.10"
|
15 |
|
16 | # Install scripts. (runs after repo cloning)
|
17 | install:
|
18 | # Get the latest stable version of Node.js or io.js
|
19 | - ps: Install-Product node $env:nodejs_version
|
20 | # install modules
|
21 | - npm install
|
22 |
|
23 | # Post-install test scripts.
|
24 | test_script:
|
25 | # Output useful info for debugging.
|
26 | - node --version
|
27 | - npm --version
|
28 | # run tests
|
29 | - npm test
|
30 |
|
31 | # Don't actually build.
|
32 | build: off
|