Skip to content

Commit

Permalink
fix: travis ci node
Browse files Browse the repository at this point in the history
  • Loading branch information
Markkop committed Apr 23, 2020
1 parent 7dabfbd commit c062ea3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
11 changes: 7 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ jobs:
- os: linux
dist: trusty
services: docker
language: generic
language: node_js
node_js: '10'

- os: windows
language: node_js
Expand All @@ -31,13 +32,14 @@ script:
- |
if [ "$TRAVIS_OS_NAME" == "linux" ]; then
docker run --rm \
-e GH_TOKEN=$GH_TOKEN \
-v ${PWD}:/project \
-v ~/.cache/electron:/root/.cache/electron \
-v ~/.cache/electron-builder:/root/.cache/electron-builder \
electronuserland/builder:wine \
/bin/bash -c "yarn --link-duplicates --pure-lockfile && yarn dist:linux"
/bin/bash -c "yarn --link-duplicates --pure-lockfile && yarn release:linux"
else
yarn dist:win
yarn release:win
fi
deploy:
Expand All @@ -48,5 +50,6 @@ deploy:
- 'dist/*.AppImage'
- 'dist/*.exe'
overwrite: true
skip_cleanup: true
on:
all_branches: true
branch: 'fix/release'
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
"dist:win": "electron-builder build --win portable ",
"dist": "electron-builder build --win portable --linux AppImage ",
"build": "babel src --out-dir build",
"release": "yarn build && electron-builder"
"release:linux": "yarn build && electron-builder --linux AppImage -p onTagOrDraft",
"release:win": "yarn build && electron-builder --win portable -p onTagOrDraft"
},
"keywords": [],
"author": "Marcelo 'Mark' Kopmann",
Expand Down

0 comments on commit c062ea3

Please sign in to comment.