diff --git a/.travis.yml b/.travis.yml index b1fda9b..0ec1df0 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,16 +1,27 @@ -dist: xenial +osx_image: xcode10.2 +os: osx language: node_js node_js: node -cache: - directories: - - node_modules +env: + global: + - ELECTRON_CACHE=$HOME/.cache/electron + - ELECTRON_BUILDER_CACHE=$HOME/.cache/electron-builder -# will run `npm install` automatically here +cache: + npm: true + directories: + - $HOME/.cache/electron + - $HOME/.cache/electron-builder + - $HOME/.npm/_prebuilds script: - npm test - - npm run build + - npm run dist + +branches: + except: + - "/^v\\d+\\.\\d+\\.\\d+$/" notifications: email: false diff --git a/package.json b/package.json index 35ed79a..b0cd407 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,7 @@ "test": "eslint --ignore-path .gitignore ./src/**/*.{js,jsx} && stylelint --ignore-path .gitignore ./src/**/*.{css,scss}", "start": "webpack-dev-server --hot --host 0.0.0.0 --config=./webpack.dev.config.js", "build": "cross-env NODE_ENV=production webpack --config webpack.common.config.js", - "package": "electron-builder build -mwl && open ./dist", + "package": "electron-builder build -mwl -p never && open ./dist", "dist": "rm -rf {dist,build}/ && npm run build && npm run package", "release": "release-it --non-interactive", "changelog": "auto-changelog -p"