insomnia/.travis.yml
2019-02-20 13:11:40 -05:00

72 lines
2.1 KiB
YAML

language: node_js
matrix:
include:
- os: linux
sudo: required
dist: trusty
env:
- COMPOSE_SCRIPT=package_linux
- DOCKER_COMPOSE_VERSION=1.20.1
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
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
- docker-compose build $COMPOSE_SCRIPT
- docker-compose run $COMPOSE_SCRIPT
- os: linux
sudo: required
dist: trusty
env:
- COMPOSE_SCRIPT=package_snap
- DOCKER_COMPOSE_VERSION=1.20.1
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
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 $COMPOSE_SCRIPT
- docker-compose run $COMPOSE_SCRIPT
- os: osx
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/**/*.rpm
- packages/insomnia-app/dist/**/*.AppImage
- packages/insomnia-app/dist/**/*.tar.gz
on:
tags: true