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
143 additions
and
29 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' | ||
language: | ||
- node_js | ||
|
||
script: | ||
- npm run all | ||
node_js: | ||
- node | ||
|
||
cache: | ||
directories: | ||
- node_modules | ||
- $HOME/.cache/electron | ||
- $HOME/.cache/electron-builder | ||
|
||
jobs: | ||
include: | ||
- stage: test | ||
script: npm run all -- --x64 | ||
- stage: "distro [windows+linux]" | ||
os: linux | ||
services: docker | ||
language: generic | ||
script: | ||
- | | ||
docker run --rm \ | ||
--env-file <(env | grep -iE 'DEBUG|NODE_|ELECTRON_|YARN_|NPM_|CI|CIRCLE|TRAVIS|APPVEYOR_|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 install && npm run build -- --win --linux" | ||
- stage: "distro [macos]" | ||
os: osx | ||
osx_image: xcode9 | ||
env: | ||
- ELECTRON_CACHE=$HOME/.cache/electron | ||
- ELECTRON_BUILDER_CACHE=$HOME/.cache/electron-builder | ||
script: npm install && npm run build -- --mac | ||
- stage: "nightly build [windows+linux]" | ||
os: linux | ||
services: docker | ||
language: generic | ||
script: | ||
- | | ||
docker run --rm \ | ||
--env-file <(env | grep -iE 'DEBUG|NODE_|ELECTRON_|YARN_|NPM_|CI|CIRCLE|TRAVIS|APPVEYOR_|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 install && npm run build -- --win --linux --nightly --no-publish" | ||
- stage: "nightly build [macos]" | ||
os: osx | ||
osx_image: xcode9 | ||
env: | ||
- ELECTRON_CACHE=$HOME/.cache/electron | ||
- ELECTRON_BUILDER_CACHE=$HOME/.cache/electron-builder | ||
script: npm install && 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