appveyor.yml 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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:\Miniconda
  10. PYTHON_VERSION: 2.7
  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. - 'pip install --upgrade -e ".[test]"'
  39. - 'jupyter kernelspec list'
  40. - 'jlpm versions'
  41. - 'jlpm config current'
  42. build: off
  43. # to run your custom scripts instead of automatic tests
  44. test_script:
  45. - cmd /E:ON /V:ON /C .\\scripts\\appveyor.cmd