Skip to content

Commit

Permalink
chore: configure travis-ci to build on macos
Browse files Browse the repository at this point in the history
- Adjust Travis configuration to build on macOS, any branch.
- Add dist script to build for all targets. Use dist for travis builds.
  • Loading branch information
Splode committed Apr 4, 2020
1 parent 473aaf6 commit ef77bc9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
14 changes: 4 additions & 10 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,11 @@
os: osx
osx_image: xcode11.3
language: node_js
node_js:
- 'lts/*'
- '10'
sudo: required
dist: trusty
node_js: 'lts/*'
cache:
directories:
- node_modules
- '$HOME/.electron'
- '$HOME/.cache'
script:
- npm run build
branches:
only:
- master
- dev
- npm run dist
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"build:clean": "cross-env BUILD_TARGET=clean node .electron-vue/build.js",
"build:web": "cross-env BUILD_TARGET=web node .electron-vue/build.js",
"dev": "node .electron-vue/dev-runner.js",
"dist": "node .electron-vue/build.js && electron-builder -w -l -o",
"lint": "eslint --ext .js,.vue -f ./node_modules/eslint-friendly-formatter src",
"lint:fix": "eslint --ext .js,.vue -f ./node_modules/eslint-friendly-formatter --fix src",
"pack": "npm run pack:main && npm run pack:renderer",
Expand Down

0 comments on commit ef77bc9

Please sign in to comment.