appveyor.yml 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. # Do not build feature branch with open Pull Requests
  2. skip_branch_with_pr: true
  3. matrix:
  4. fast_finish: true
  5. # environment variables
  6. environment:
  7. nodejs_version: "lts"
  8. matrix:
  9. - PYTHON: C:\Miniconda35
  10. PYTHON_VERSION: 3.5
  11. NAME: javascript
  12. - PYTHON: C:\Miniconda36-x64
  13. PYTHON_VERSION: 3.6
  14. NAME: python
  15. - PYTHON: C:\Miniconda36-x64
  16. PYTHON_VERSION: 3.6
  17. NAME: integrity
  18. # build cache to preserve files/folders between builds
  19. cache:
  20. - '%LOCALAPPDATA%\\Yarn' # jlpm cache
  21. - C:\Users\appveyor\pip\wheels
  22. # scripts that run after cloning repository
  23. install:
  24. # If there is a newer build queued for the same PR, cancel this one.
  25. # The AppVeyor 'rollout builds' option is supposed to serve the same
  26. # purpose but it is problematic because it tends to cancel builds pushed
  27. # directly to master instead of just PR builds (or the converse).
  28. # credits: JuliaLang developers.
  29. - ps: if ($env:APPVEYOR_PULL_REQUEST_NUMBER -and $env:APPVEYOR_BUILD_NUMBER -ne ((Invoke-RestMethod `
  30. https://ci.appveyor.com/api/projects/$env:APPVEYOR_ACCOUNT_NAME/$env:APPVEYOR_PROJECT_SLUG/history?recordsNumber=50).builds | `
  31. Where-Object pullRequestId -eq $env:APPVEYOR_PULL_REQUEST_NUMBER)[0].buildNumber) { `
  32. throw "There are newer queued builds for this pull request, failing early." }
  33. # Install node:
  34. - ps: Install-Product node $env:nodejs_version
  35. # Ensure python and python scripts are from right version:
  36. - 'SET "PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH%"'
  37. # Install our package:
  38. - 'python -m pip install -U pip'
  39. - 'pip install --upgrade -e ".[test]"'
  40. - 'jupyter kernelspec list'
  41. - 'jlpm versions'
  42. - 'jlpm config current'
  43. build: off
  44. # to run your custom scripts instead of automatic tests
  45. test_script:
  46. - cmd /E:ON /V:ON /C .\\scripts\\appveyor.cmd