_appveyor.yml 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. image: Visual Studio 2019
  2. # Do not build feature branch with open Pull Requests
  3. skip_branch_with_pr: true
  4. branches:
  5. only:
  6. - master
  7. - dev
  8. - rel/3.0-beta
  9. init:
  10. - git config --global core.autocrlf true
  11. install:
  12. - ps: $env:BuildNumber= $env:APPVEYOR_BUILD_NUMBER
  13. - ps: $env:DOTNET_SKIP_FIRST_TIME_EXPERIENCE = true
  14. - ps: $env:NUGET_XMLDOC_MODE = "skip"
  15. - ps: $env:DOTNET_CLI_TELEMETRY_OPTOUT = 1
  16. - ps: $IsReleaseBranch = ($env:APPVEYOR_REPO_BRANCH -eq "master" -Or $env:APPVEYOR_REPO_BRANCH -eq "rel/3.0-beta")
  17. build_script:
  18. # Ensure we are not using the myget feed for dependencies
  19. - ps: if ($IsReleaseBranch) { copy NuGet.release.config NuGet.config }
  20. - dotnet --version
  21. - dotnet pack -c Release
  22. test_script:
  23. - dotnet test .\Jint.Tests\Jint.Tests.csproj -c Release
  24. - dotnet test .\Jint.Tests.CommonScripts\Jint.Tests.CommonScripts.csproj -c Release
  25. - dotnet test .\Jint.Tests.Ecma\Jint.Tests.Ecma.csproj -c Release
  26. - dotnet test .\Jint.Tests.Test262\Jint.Tests.Test262.csproj -c Release
  27. artifacts:
  28. - path: 'Jint\**\*.*nupkg'
  29. deploy:
  30. - provider: NuGet
  31. on:
  32. branch: dev
  33. server: https://www.myget.org/F/jint/api/v2/package
  34. api_key:
  35. secure: 7PQvuxXn5P39X5QDlDKWbNpOKJKivpqkq7umakIirAZ12CSTAiCwjtJhSBGVboPm
  36. skip_symbols: true
  37. artifact: /.*\.nupkg/
  38. - provider: NuGet
  39. on:
  40. branch: rel/3.0-beta
  41. server: https://www.nuget.org/api/v2/package
  42. api_key:
  43. secure: qZ6R8U4mtBXFVRhhNLJyRz3bktF/jL5BvzrCQsXcn6ATRQ4YavFP3By8Sg4hYMH5
  44. skip_symbols: true
  45. artifact: /.*\.nupkg/
  46. - provider: NuGet
  47. on:
  48. branch: master
  49. server: https://www.nuget.org/api/v2/package
  50. api_key:
  51. secure: yZBBCLlJTphpHCezRUxyDny1mBbDw7xFG/2Rwt21A8khKp6KJCxFEYx4k9IihOjO
  52. skip_symbols: true
  53. artifact: /.*\.nupkg/