.travis.yml 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. language: node_js
  2. node_js: "12"
  3. before_install:
  4. - npm i
  5. jobs:
  6. include:
  7. - stage: Linux & Mac Build
  8. os: osx
  9. osx_image: xcode10.2
  10. env:
  11. - ELECTRON_CACHE=$HOME/.cache/electron
  12. - ELECTRON_BUILDER_CACHE=$HOME/.cache/electron-builder
  13. before_cache:
  14. - rm -rf $ELECTRON_BUILDER_CACHE/wine
  15. script:
  16. - npm run devInstall
  17. - npm run build
  18. # - stage: Windows Build
  19. # os: windows
  20. # script:
  21. # - export NPM_CONFIG_PREFIX=C:\\npm_prefix
  22. # - export PATH="/c/npm_prefix:$PATH"
  23. # - npm i -g npm@latest
  24. # - npm run devInstall
  25. # - npm run build
  26. # - stage: GitHub Release
  27. # script:
  28. # - export TRAVIS_TAG=${TRAVIS_TAG:-$(date +'%Y%m%d%H%M%S')-$(git log --format=%h -1)}
  29. # - git tag $TRAVIS_TAG
  30. # deploy:
  31. # provider: releases
  32. # prerelease: true
  33. # api_key: "$GH_TOKEN"
  34. # cleanup: false
  35. # file:
  36. # - builds/lightcord-win32-ia32.zip
  37. # - builds/lightcord-win32.exe
  38. # - builds/lightcord-linux-x64.zip
  39. # - builds/lightcord-darwin.zip
  40. # on:
  41. # tags: true