From f12f00dbb7853291dd60064a5d0264da122d34b4 Mon Sep 17 00:00:00 2001 From: Fabio Date: Mon, 27 Jul 2020 16:27:33 +0200 Subject: [PATCH] Added .travis.yml --- .travis.yml | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 00000000..eae65b97 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,40 @@ +sudo: false + +language: node_js +node_js: 12 + +before_install: + - npm install + +cache: + directories: + - node_modules + - app/node_modules + - $HOME/.cache/electron + - $HOME/.cache/electron-builder + - $HOME/.npm/_prebuilds + +env: + global: + - ELECTRON_CACHE=$HOME/.cache/electron + - ELECTRON_BUILDER_CACHE=$HOME/.cache/electron-builder + +jobs: + include: + - stage: Test + script: + - npm test + - stage: Deploy Windows & Mac + if: tag IS present + os: osx + osx_image: xcode10.1 + script: + - npm run publish -- --mac --win + before_cache: + - rm -rf $HOME/.cache/electron-builder/wine + - stage: Deploy linux + if: tag IS present + os: linux + dist: trusty + script: + - npm run publish \ No newline at end of file