Add Appveyor builds and webdriver.io tests (tests cover Angular2Spa template only at present)

This commit is contained in:
SteveSandersonMS
2016-12-15 16:38:30 +00:00
parent 6decb30681
commit 67c2cfd84e
9 changed files with 532 additions and 2 deletions

View File

@@ -1,7 +1,20 @@
init:
- git config --global core.autocrlf true
build_script:
- build.cmd verify
- npm install -g npm@^3.0.0
- npm --prefix templates/package-builder install
- npm --prefix templates/package-builder run build
# - build.cmd verify
clone_depth: 1
test: off
test_script:
- dotnet restore ./src
- npm install -g selenium-standalone
- selenium-standalone install
# The nosys flag is needed for selenium to work on Appveyor
- ps: Start-Process selenium-standalone 'start','--','-Djna.nosys=true'
- npm --prefix test install
- npm --prefix test test
on_finish :
# 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))
deploy: off