insomnia/.travis.yml

58 lines
943 B
YAML
Raw Normal View History

language: node_js
matrix:
include:
- os: linux
dist: trusty
2017-05-05 02:52:30 +00:00
env: CC=clang CXX=clang++ npm_config_clang=1
compiler: clang
env:
- PLATFORM=linux
- os: osx
env:
- PLATFORM=mac
- CSC_LINK=$MAC_CSC_LINK
- CSC_KEY_PASSWORD=$MAC_CSC_KEY_PASSWORD
addons:
apt:
packages:
- libcurl4-openssl-dev
- 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
install:
2017-05-26 18:57:24 +00:00
- npm install -g npm@5 > Nul
- npm install > /dev/null
2017-05-26 18:57:24 +00:00
- node --version
- npm --version
script:
- npm test
before_deploy:
2017-05-12 18:55:28 +00:00
- npm run build-n-package:$PLATFORM
deploy:
provider: releases
api_key: $GITHUB_TOKEN
skip_cleanup: true
file_glob: true
file:
- dist/**/*.zip
- dist/**/*.dmg
- dist/**/*.deb
- dist/**/*.AppImage
on:
tags: true