UNPKG

1.37 kBYAMLView Raw
1# branches to build
2#branches:
3 # whitelist
4 #only:
5 # - master
6
7# What combinations to test
8environment:
9 matrix:
10 - nodejs_version: "0.10"
11 platform: x86
12 - nodejs_version: "0.12"
13 platform: x86
14 - nodejs_version: "4"
15 platform: x64
16 - nodejs_version: "4"
17 platform: x86
18 - nodejs_version: "6"
19 platform: x64
20 - nodejs_version: "7"
21 platform: x64
22
23install:
24 # Use version based on tag
25 - ps: $env:package_version = (Get-Content -Raw -Path package.json | ConvertFrom-Json).version
26 - ps: Update-AppveyorBuild -Version "$env:package_version-$env:APPVEYOR_BUILD_NUMBER"
27
28 # install node
29 # Get the latest stable version of Node.js or io.js
30 - ps: Install-Product node $env:nodejs_version
31 - ps: >-
32 if ($env:nodejs_version -eq "0.12" -or $env:nodejs_version -eq "0.10") {
33 $env:PATH="$env:APPDATA\npm;$env:PATH"
34 }
35 # install grunt-cli globally
36 - npm install -g grunt-cli
37 # install modules
38 - npm install
39
40test_script:
41 # Output useful info for debugging
42 - node --version && npm --version
43 - ps: >-
44 if ($env:nodejs_version -eq "0.12" -or $env:nodejs_version -eq "0.10") {
45 echo ----- Running tests in LEGACY mode -----
46 grunt test-old
47 } else {
48 echo ----- Running tests in NORMAL mode -----
49 grunt test
50 }
51
52# Don't actually build.
53build: off