forked from Kong/insomnia
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
71 lines (67 loc) · 2.09 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
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