[Desktop] Setup Travis for electron-builder

This commit is contained in:
Bruno Lemos
2018-12-30 04:11:34 -02:00
parent c8d911307c
commit d783c00fc5
2 changed files with 28 additions and 1 deletions

27
.travis.yml Normal file
View File

@@ -0,0 +1,27 @@
matrix:
include:
- os: osx
osx_image: xcode9.4
language: node_js
node_js: "10"
env:
- ELECTRON_CACHE=$HOME/.cache/electron
- ELECTRON_BUILDER_CACHE=$HOME/.cache/electron-builder
cache:
directories:
- node_modules
- $HOME/.cache/electron
- $HOME/.cache/electron-builder
script:
- yarn workspace @devhub/desktop build --mac --win --linux
before_cache:
- rm -rf $HOME/.cache/electron-builder/wine
branches:
only:
- master
if: tag IS present

View File

@@ -12,7 +12,7 @@
"repository": "https://github.com/devhubapp/devhub",
"scripts": {
"build": "yarn clean && yarn compile && pushd \"../web\" && yarn build && popd && shx cp -Rf ../web/dist dist/web && yarn build:electron",
"build:electron": "electron-builder -mwl",
"build:electron": "electron-builder",
"compile": "tsc -b",
"clean": "shx rm -rf build && shx rm -rf dist",
"format": "prettier --write '{.,src/**}/*.{js,jsx,ts,tsx}'",