2017-05-04 17:37:33 +00:00
|
|
|
language: node_js
|
|
|
|
|
|
|
|
matrix:
|
|
|
|
include:
|
2018-10-20 02:11:58 +00:00
|
|
|
- os: linux
|
|
|
|
sudo: required
|
|
|
|
dist: trusty
|
|
|
|
env:
|
2018-11-06 18:08:16 +00:00
|
|
|
- COMPOSE_SCRIPT=package_linux
|
2018-10-20 02:11:58 +00:00
|
|
|
- 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);'
|
2018-11-06 17:27:38 +00:00
|
|
|
- docker-compose build
|
2018-11-06 18:08:16 +00:00
|
|
|
- docker-compose build $COMPOSE_SCRIPT
|
|
|
|
- docker-compose run $COMPOSE_SCRIPT
|
2018-11-06 17:39:51 +00:00
|
|
|
- os: linux
|
|
|
|
sudo: required
|
|
|
|
dist: trusty
|
|
|
|
env:
|
2018-11-06 18:08:16 +00:00
|
|
|
- COMPOSE_SCRIPT=package_snap
|
2018-11-06 17:39:51 +00:00
|
|
|
- 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);'
|
2018-11-06 18:08:16 +00:00
|
|
|
- docker-compose build $COMPOSE_SCRIPT
|
|
|
|
- docker-compose run $COMPOSE_SCRIPT
|
2018-10-20 02:11:58 +00:00
|
|
|
- os: osx
|
|
|
|
env:
|
|
|
|
- CSC_LINK=$MAC_CSC_LINK
|
|
|
|
- CSC_KEY_PASSWORD=$MAC_CSC_KEY_PASSWORD
|
|
|
|
before_deploy:
|
|
|
|
- npm run app-package
|
2017-05-04 17:37:33 +00:00
|
|
|
|
2017-05-04 21:28:27 +00:00
|
|
|
cache:
|
|
|
|
directories:
|
2018-10-20 02:11:58 +00:00
|
|
|
- node_modules
|
|
|
|
- build/node_modules
|
|
|
|
- $HOME/.electron
|
|
|
|
- $HOME/.cache
|
2017-05-04 21:28:27 +00:00
|
|
|
|
2017-11-26 20:45:40 +00:00
|
|
|
script:
|
2018-10-20 02:11:58 +00:00
|
|
|
- node --version
|
|
|
|
- npm --version
|
|
|
|
- npm run bootstrap
|
|
|
|
- npm test
|
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:
|
2018-10-20 02:11:58 +00:00
|
|
|
- packages/insomnia-app/dist/**/*.zip
|
|
|
|
- packages/insomnia-app/dist/**/*.dmg
|
|
|
|
- packages/insomnia-app/dist/**/*.deb
|
|
|
|
- packages/insomnia-app/dist/**/*.snap
|
2019-02-20 18:11:40 +00:00
|
|
|
- packages/insomnia-app/dist/**/*.rpm
|
2018-10-20 02:11:58 +00:00
|
|
|
- packages/insomnia-app/dist/**/*.AppImage
|
|
|
|
- packages/insomnia-app/dist/**/*.tar.gz
|
2017-05-04 17:37:33 +00:00
|
|
|
on:
|
|
|
|
tags: true
|