.travis.yml 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. matrix:
  2. include:
  3. - os: linux
  4. sudo: required
  5. env: BUILDARCH=x64
  6. dist: trusty
  7. - os: linux
  8. sudo: required
  9. env: BUILDARCH=arm64
  10. dist: trusty
  11. - os: linux
  12. sudo: required
  13. env: BUILDARCH=arm
  14. dist: trusty
  15. - os: osx
  16. addons:
  17. homebrew:
  18. packages:
  19. - jq
  20. - zip
  21. language: node_js
  22. node_js: "12.14.1"
  23. before_install:
  24. - curl -o- -L https://yarnpkg.com/install.sh | bash
  25. - export PATH="$HOME/.yarn/bin:$PATH"
  26. - . install_deps.sh
  27. - . get_repo.sh
  28. - . check_tags.sh
  29. script:
  30. - ./build.sh
  31. before_deploy:
  32. - ./sign_mac_app.sh
  33. - ./create_zip.sh
  34. - ./create_dmg.sh
  35. - ./sum.sh
  36. deploy:
  37. provider: releases
  38. skip_cleanup: true
  39. overwrite: true
  40. name: $LATEST_MS_TAG
  41. api_key: $GITHUB_TOKEN
  42. file_glob: true
  43. file:
  44. - ./*.sha256
  45. - ./*.zip
  46. - ./*.tar.gz
  47. - ./*.dmg
  48. - ./*.deb
  49. - ./*.rpm
  50. - ./*.AppImage
  51. - ./*.AppImage.zsync
  52. on:
  53. all_branches: true
  54. condition: $SHOULD_BUILD = yes
  55. after_deploy:
  56. - ./update_version.sh