appveyor.yml 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. # http://www.appveyor.com/docs/appveyor-yml
  2. # Set build version format here instead of in the admin panel
  3. version: '{build}'
  4. # Do not build on gh tags
  5. skip_tags: true
  6. # Test against these versions of Node.js
  7. environment:
  8. matrix:
  9. # Node versions to run
  10. - nodejs_version: 'Current'
  11. - nodejs_version: 'LTS'
  12. # Fix line endings in Windows. (runs before repo cloning)
  13. init:
  14. - git config --global core.autocrlf input
  15. # Install scripts--runs after repo cloning
  16. install:
  17. # Install chrome
  18. - choco install -y googlechrome --ignore-checksums
  19. # Install the latest stable version of Node
  20. - ps: Install-Product node $env:nodejs_version
  21. - npm ci
  22. # Disable automatic builds
  23. build: off
  24. # Post-install test scripts
  25. test_script:
  26. # Output debugging info
  27. - node --version
  28. # run tests and run build
  29. - npm run test
  30. - npm run build
  31. # Cache node_modules for faster builds
  32. cache:
  33. - node_modules -> package.json
  34. # remove, as appveyor doesn't support secure variables on pr builds
  35. # so `COVERALLS_REPO_TOKEN` cannot be set, without hard-coding in this file
  36. #on_success:
  37. #- npm run coveralls