-
Notifications
You must be signed in to change notification settings - Fork 479
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(project): build distro via Travis
* build distributions on Travis CI * publish to GitHub releases Related to #787
- Loading branch information
Showing
7 changed files
with
126 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,70 @@ | ||
language: node_js | ||
node_js: 'node' | ||
cache: | ||
directories: | ||
- node_modules | ||
- $HOME/.cache/electron | ||
- $HOME/.cache/electron-builder | ||
|
||
script: | ||
- npm run all | ||
jobs: | ||
include: | ||
- stage: test | ||
node_js: node | ||
language: node_js | ||
script: "npm run all" | ||
- stage: "distro [windows+linux]" | ||
os: linux | ||
services: docker | ||
language: generic | ||
script: | ||
- | | ||
docker run --rm \ | ||
--env-file <(env | grep -E 'DEBUG|NODE_|ELECTRON_|NPM_|CI|TRAVIS|WIN_CSC_|CSC_|_TOKEN|_KEY|AWS_|STRIP|BUILD_') \ | ||
-v ${PWD}:/project \ | ||
-v ~/.cache/electron:/root/.cache/electron \ | ||
-v ~/.cache/electron-builder:/root/.cache/electron-builder \ | ||
electronuserland/builder:wine \ | ||
/bin/bash -c "npm i && npm run build -- --win --linux --publish" | ||
- stage: "distro [macos]" | ||
os: osx | ||
osx_image: xcode9 | ||
node_js: node | ||
language: node_js | ||
env: | ||
- ELECTRON_CACHE=$HOME/.cache/electron | ||
- ELECTRON_BUILDER_CACHE=$HOME/.cache/electron-builder | ||
script: npm run build -- --mac --publish | ||
- stage: "nightly build [windows+linux]" | ||
os: linux | ||
services: docker | ||
language: generic | ||
script: | ||
- | | ||
docker run --rm \ | ||
--env-file <(env | grep -E 'DEBUG|NODE_|ELECTRON_|NPM_|CI|TRAVIS|WIN_CSC_|CSC_|_TOKEN|_KEY|AWS_|STRIP|BUILD_') \ | ||
-v ${PWD}:/project \ | ||
-v ~/.cache/electron:/root/.cache/electron \ | ||
-v ~/.cache/electron-builder:/root/.cache/electron-builder \ | ||
electronuserland/builder:wine \ | ||
/bin/bash -c "npm i && npm run build -- --win --linux --nightly --no-publish" | ||
- stage: "nightly build [macos]" | ||
os: osx | ||
osx_image: xcode9 | ||
node_js: node | ||
language: node_js | ||
env: | ||
- ELECTRON_CACHE=$HOME/.cache/electron | ||
- ELECTRON_BUILDER_CACHE=$HOME/.cache/electron-builder | ||
script: npm run build -- --mac --nightly --no-publish | ||
|
||
before_cache: | ||
- rm -rf $HOME/.cache/electron-builder/wine | ||
|
||
stages: | ||
- test | ||
- name: "distro [windows+linux]" | ||
if: tag =~ ^v\d | ||
- name: "distro [macos]" | ||
if: tag =~ ^v\d | ||
- name: "nightly build [windows+linux]" | ||
if: type IN (cron) | ||
- name: "nightly build [macos]" | ||
if: type IN (cron) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters