insomnia/.travis.yml

58 lines
1.6 KiB
YAML
Raw Normal View History

language: node_js
matrix:
include:
- os: linux
sudo: required
2018-02-07 08:51:26 +00:00
dist: trusty
env:
- DOCKER_COMPOSE_VERSION=1.20.1
# Get newer docker-compose
before_install:
- sudo rm /usr/local/bin/docker-compose
- curl -L https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-`uname -s`-`uname -m` > docker-compose
- chmod +x docker-compose
- sudo mv docker-compose /usr/local/bin
# Some hack to get stdout to be blocking
before_deploy:
- python -c 'import os,sys,fcntl; flags = fcntl.fcntl(sys.stdout, fcntl.F_GETFL); fcntl.fcntl(sys.stdout, fcntl.F_SETFL, flags&~os.O_NONBLOCK);'
- docker-compose build package
- docker-compose run package
- os: osx
install:
- npm install 7zip-bin-mac > /dev/null
env:
- CSC_LINK=$MAC_CSC_LINK
- CSC_KEY_PASSWORD=$MAC_CSC_KEY_PASSWORD
before_deploy:
- npm run app-package
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
script:
2018-02-07 08:51:26 +00:00
- node --version
- npm --version
- npm run bootstrap
- npm test
deploy:
provider: releases
api_key: $GITHUB_TOKEN
skip_cleanup: true
file_glob: true
prerelease: true
file:
2018-02-07 09:26:17 +00:00
- packages/insomnia-app/dist/**/*.zip
- packages/insomnia-app/dist/**/*.dmg
- packages/insomnia-app/dist/**/*.deb
- packages/insomnia-app/dist/**/*.snap
- packages/insomnia-app/dist/**/*.AppImage
- packages/insomnia-app/dist/**/*.tar.gz
on:
tags: true