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