1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 | environment:
|
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 |
|
23 | install:
|
24 |
|
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 |
|
29 |
|
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 |
|
36 | - npm install -g grunt-cli
|
37 |
|
38 | - npm install
|
39 |
|
40 | test_script:
|
41 |
|
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 |
|
53 | build: off
|