|
1 | 1 | init: |
2 | 2 | - git config --global core.autocrlf true |
| 3 | +install: |
| 4 | + - ps: Install-Product node 6.9.2 x64 |
| 5 | + # .NET Core SDK binaries |
| 6 | + # Download .NET Core SDK and add to PATH |
| 7 | + - ps: $urlCurrent = "https://go.microsoft.com/fwlink/?LinkID=834991" |
| 8 | + - ps: $urlPreview = "https://dotnetcli.blob.core.windows.net/dotnet/Sdk/rel-1.0.0/dotnet-dev-win-x64.latest.zip" |
| 9 | + - ps: $env:DOTNET_INSTALL_DIR = "$pwd\.dotnetsdk" |
| 10 | + - ps: mkdir $env:DOTNET_INSTALL_DIR -Force | Out-Null |
| 11 | + - ps: $tempFileCurrent = [System.IO.Path]::GetTempFileName() |
| 12 | + - ps: $tempFilePreview = [System.IO.Path]::GetTempFileName() |
| 13 | + - ps: (New-Object System.Net.WebClient).DownloadFile($urlCurrent, $tempFileCurrent) |
| 14 | + - ps: (New-Object System.Net.WebClient).DownloadFile($urlPreview, $tempFilePreview) |
| 15 | + - ps: Add-Type -AssemblyName System.IO.Compression.FileSystem; [System.IO.Compression.ZipFile]::ExtractToDirectory($tempFileCurrent, $env:DOTNET_INSTALL_DIR) |
| 16 | + - ps: Add-Type -AssemblyName System.IO.Compression.FileSystem; [System.IO.Compression.ZipFile]::ExtractToDirectory($tempFilePreview, $env:DOTNET_INSTALL_DIR + "preview") |
| 17 | + - ps: Copy-Item "${env:DOTNET_INSTALL_DIR}preview\*" "${env:DOTNET_INSTALL_DIR}" -Force -Recurse |
| 18 | + - ps: $env:Path = "$env:DOTNET_INSTALL_DIR;$env:Path" |
3 | 19 | build_script: |
4 | | - - build.cmd verify |
| 20 | + - ps: Push-Location |
| 21 | + - cd templates/package-builder |
| 22 | + - npm install |
| 23 | + - npm run build |
| 24 | + - ps: Pop-Location |
| 25 | +artifacts: |
| 26 | + - path: templates\package-builder\dist\artifacts\generator-aspnetcore-spa.tar.gz |
| 27 | + name: generator-aspnetcore-spa |
| 28 | + - path: templates\package-builder\dist\artifacts\*.nupkg |
| 29 | + name: Microsoft.AspNetCore.SpaTemplates |
| 30 | + type: NuGetPackage |
| 31 | +# - build.cmd verify |
5 | 32 | clone_depth: 1 |
6 | | -test: off |
| 33 | +test_script: |
| 34 | + # - dotnet restore ./src |
| 35 | + # - npm install -g selenium-standalone |
| 36 | + # - selenium-standalone install |
| 37 | + # The nosys flag is needed for selenium to work on Appveyor |
| 38 | + # - ps: Start-Process selenium-standalone 'start','--','-Djna.nosys=true' |
| 39 | + # - ps: Push-Location |
| 40 | + # - cd test |
| 41 | + # - npm install |
| 42 | + # - npm test |
| 43 | +on_finish : |
| 44 | + # - ps: Pop-Location |
| 45 | + # After running tests, upload results to Appveyor |
| 46 | + # - ps: (new-object net.webclient).UploadFile("https://ci.appveyor.com/api/testresults/junit/$($env:APPVEYOR_JOB_ID)", (Resolve-Path .\test\tmp\junit\*.xml)) |
7 | 47 | deploy: off |
0 commit comments