1
0
mirror of https://github.com/kremalicious/blowfish.git synced 2024-11-15 01:25:22 +01:00

test packaging on Travis

This commit is contained in:
Matthias Kretschmann 2019-07-06 21:25:23 +02:00
parent fe02b0f1d1
commit 11d50e52c2
Signed by: m
GPG Key ID: 606EEEF3C479A91F
2 changed files with 18 additions and 7 deletions

View File

@ -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

View File

@ -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"