2017-05-04 17:37:33 +00:00
|
|
|
language: node_js
|
|
|
|
|
|
|
|
matrix:
|
|
|
|
include:
|
|
|
|
- os: linux
|
2017-11-20 16:07:36 +00:00
|
|
|
sudo: required
|
2017-05-04 17:37:33 +00:00
|
|
|
dist: trusty
|
2017-05-05 02:52:30 +00:00
|
|
|
env: CC=clang CXX=clang++ npm_config_clang=1
|
|
|
|
compiler: clang
|
2017-11-20 16:07:36 +00:00
|
|
|
install:
|
|
|
|
- npm install 7zip-bin-linux > /dev/null
|
2017-05-04 17:37:33 +00:00
|
|
|
env:
|
|
|
|
- os: osx
|
2017-11-20 16:07:36 +00:00
|
|
|
install:
|
|
|
|
- npm install 7zip-bin-mac > /dev/null
|
2017-05-04 17:37:33 +00:00
|
|
|
env:
|
2017-05-12 18:38:34 +00:00
|
|
|
- CSC_LINK=$MAC_CSC_LINK
|
|
|
|
- CSC_KEY_PASSWORD=$MAC_CSC_KEY_PASSWORD
|
2017-05-04 17:37:33 +00:00
|
|
|
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
packages:
|
|
|
|
- libcurl4-openssl-dev
|
2017-11-20 16:07:36 +00:00
|
|
|
- snapd
|
2017-05-04 17:37:33 +00:00
|
|
|
- git-all
|
|
|
|
- build-essential
|
|
|
|
- icnsutils
|
|
|
|
- graphicsmagick
|
|
|
|
- xz-utils
|
|
|
|
|
2017-05-04 21:28:27 +00:00
|
|
|
cache:
|
|
|
|
directories:
|
|
|
|
- node_modules
|
|
|
|
- build/node_modules
|
2017-05-05 02:52:30 +00:00
|
|
|
- $HOME/.electron
|
|
|
|
- $HOME/.cache
|
2017-05-04 21:28:27 +00:00
|
|
|
|
2017-05-04 17:37:33 +00:00
|
|
|
install:
|
|
|
|
- npm install > /dev/null
|
2017-05-26 18:57:24 +00:00
|
|
|
- node --version
|
|
|
|
- npm --version
|
2017-05-04 17:37:33 +00:00
|
|
|
|
|
|
|
script:
|
|
|
|
- npm test
|
|
|
|
|
|
|
|
before_deploy:
|
2017-11-20 16:07:36 +00:00
|
|
|
- npm run build-n-package
|
2017-05-04 17:37:33 +00:00
|
|
|
|
|
|
|
deploy:
|
|
|
|
provider: releases
|
2017-05-12 18:38:34 +00:00
|
|
|
api_key: $GITHUB_TOKEN
|
2017-05-04 17:37:33 +00:00
|
|
|
skip_cleanup: true
|
|
|
|
file_glob: true
|
2017-11-20 16:07:36 +00:00
|
|
|
prerelease: true
|
2017-05-04 17:37:33 +00:00
|
|
|
file:
|
|
|
|
- dist/**/*.zip
|
|
|
|
- dist/**/*.dmg
|
|
|
|
- dist/**/*.deb
|
|
|
|
- dist/**/*.AppImage
|
2017-11-20 16:07:36 +00:00
|
|
|
- dist/**/*.tar.gz
|
2017-05-04 17:37:33 +00:00
|
|
|
on:
|
|
|
|
tags: true
|