mirror of
https://github.com/Kong/insomnia
synced 2024-11-08 14:49:53 +00:00
40b2bf3c78
* Statically linked Curl for linux builds with Docker * Test Travis Docker * Try fix blocking i/o * Try a package * Fixed linux build * Try hack * Fix icons? * Icon color * Re-enable osx builds * Remove libcurl3 dependency requirements * Update electronbuilder config
58 lines
1.6 KiB
YAML
58 lines
1.6 KiB
YAML
language: node_js
|
|
|
|
matrix:
|
|
include:
|
|
- os: linux
|
|
sudo: required
|
|
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
|
|
|
|
cache:
|
|
directories:
|
|
- node_modules
|
|
- build/node_modules
|
|
- $HOME/.electron
|
|
- $HOME/.cache
|
|
|
|
script:
|
|
- 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:
|
|
- 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
|