Skip to content

Commit 200d806

Browse files
Update Appveyor test environment to Node 6.9.2 to deal with Windows-specific NPM issues
1 parent 994653a commit 200d806

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

appveyor.yml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
init:
22
- git config --global core.autocrlf true
33
install:
4+
- ps: Install-Product node 6.9.2 x64
45
# .NET Core SDK binaries
56
# Download .NET Core SDK and add to PATH
67
- ps: $urlCurrent = "https://go.microsoft.com/fwlink/?LinkID=834991"
@@ -16,9 +17,11 @@ install:
1617
- ps: Copy-Item "${env:DOTNET_INSTALL_DIR}preview\*" "${env:DOTNET_INSTALL_DIR}" -Force -Recurse
1718
- ps: $env:Path = "$env:DOTNET_INSTALL_DIR;$env:Path"
1819
build_script:
19-
- npm install -g npm@^3.0.0
20-
- npm --prefix templates/package-builder install
21-
- npm --prefix templates/package-builder run build
20+
- ps: Push-Location
21+
- cd templates/package-builder
22+
- npm install
23+
- npm run build
24+
- ps: Pop-Location
2225
# - build.cmd verify
2326
clone_depth: 1
2427
test_script:
@@ -27,9 +30,12 @@ test_script:
2730
- selenium-standalone install
2831
# The nosys flag is needed for selenium to work on Appveyor
2932
- ps: Start-Process selenium-standalone 'start','--','-Djna.nosys=true'
30-
- npm --prefix test install
31-
- npm --prefix test test
33+
- ps: Push-Location
34+
- cd test
35+
- npm install
36+
- npm test
3237
on_finish :
38+
- ps: Pop-Location
3339
# After running tests, upload results to Appveyor
3440
- ps: (new-object net.webclient).UploadFile("https://ci.appveyor.com/api/testresults/junit/$($env:APPVEYOR_JOB_ID)", (Resolve-Path .\test\tmp\junit\*.xml))
3541
deploy: off

0 commit comments

Comments
 (0)