Update Appveyor test environment to Node 6.9.2 to deal with Windows-specific NPM issues

This commit is contained in:
SteveSandersonMS
2016-12-15 19:51:02 +00:00
parent 994653a277
commit 200d80627c

View File

@@ -1,6 +1,7 @@
init: init:
- git config --global core.autocrlf true - git config --global core.autocrlf true
install: install:
- ps: Install-Product node 6.9.2 x64
# .NET Core SDK binaries # .NET Core SDK binaries
# Download .NET Core SDK and add to PATH # Download .NET Core SDK and add to PATH
- ps: $urlCurrent = "https://go.microsoft.com/fwlink/?LinkID=834991" - ps: $urlCurrent = "https://go.microsoft.com/fwlink/?LinkID=834991"
@@ -16,9 +17,11 @@ install:
- ps: Copy-Item "${env:DOTNET_INSTALL_DIR}preview\*" "${env:DOTNET_INSTALL_DIR}" -Force -Recurse - ps: Copy-Item "${env:DOTNET_INSTALL_DIR}preview\*" "${env:DOTNET_INSTALL_DIR}" -Force -Recurse
- ps: $env:Path = "$env:DOTNET_INSTALL_DIR;$env:Path" - ps: $env:Path = "$env:DOTNET_INSTALL_DIR;$env:Path"
build_script: build_script:
- npm install -g npm@^3.0.0 - ps: Push-Location
- npm --prefix templates/package-builder install - cd templates/package-builder
- npm --prefix templates/package-builder run build - npm install
- npm run build
- ps: Pop-Location
# - build.cmd verify # - build.cmd verify
clone_depth: 1 clone_depth: 1
test_script: test_script:
@@ -27,9 +30,12 @@ test_script:
- selenium-standalone install - selenium-standalone install
# The nosys flag is needed for selenium to work on Appveyor # The nosys flag is needed for selenium to work on Appveyor
- ps: Start-Process selenium-standalone 'start','--','-Djna.nosys=true' - ps: Start-Process selenium-standalone 'start','--','-Djna.nosys=true'
- npm --prefix test install - ps: Push-Location
- npm --prefix test test - cd test
- npm install
- npm test
on_finish : on_finish :
- ps: Pop-Location
# After running tests, upload results to Appveyor # After running tests, upload results to Appveyor
- ps: (new-object net.webclient).UploadFile("https://ci.appveyor.com/api/testresults/junit/$($env:APPVEYOR_JOB_ID)", (Resolve-Path .\test\tmp\junit\*.xml)) - ps: (new-object net.webclient).UploadFile("https://ci.appveyor.com/api/testresults/junit/$($env:APPVEYOR_JOB_ID)", (Resolve-Path .\test\tmp\junit\*.xml))
deploy: off deploy: off