forked from vaibhav-sidapara/vagrant-manager
-
Notifications
You must be signed in to change notification settings - Fork 6
/
.travis.yml
82 lines (66 loc) · 1.84 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
72
73
74
75
76
77
78
79
80
81
82
language: node_js
# https://github.com/nodejs/Release
# Specify current LTS version here, which is used for publishing to npm
node_js:
- 14
os:
- linux
# https://github.com/nodejs/Release
matrix:
fast_finish: true
include:
- name: "Windows build"
os: windows
cache: false # windows cache uploads are slow
env: YARN_GPG=no # starts gpg-agent that never exits
- name: "macOS build"
os: osx
- name: "Packaging"
os: osx
# Next node LTS version
- node_js: 13 # EOL: June 2019
allow_failures:
- name: "Packaging"
services:
- xvfb
cache:
yarn: true
directories:
- node_modules
- $HOME/.cache/electron
- $HOME/.cache/electron-builder
before_install:
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get -qq update && sudo apt-get install -q libxss-dev; fi
install:
- yarn --frozen-lockfile --non-interactive --network-timeout 300000
script:
- npm install -g nyc
- npx nyc mocha
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then yarn pack; fi
- if [[ "$TRAVIS_JOB_NAME" == "macOS build" ]]; then yarn pack; fi
- if [[ "$TRAVIS_JOB_NAME" == "Packaging" ]]; then travis_wait 30 yarn dist-all; fi
notifications:
email:
on_success: never
on_failure: change
after_success:
- bash <(curl -s https://codecov.io/bash)
deploy:
provider: releases
api_key:
secure: '$GITHUB_API_KEY'
file:
- 'dist/vagrant-manager.dmg'
- 'dist/vagrant-manager.appx'
- 'dist/vagrant-manager.exe'
- 'dist/vagrant-manager-web-setup.exe'
- 'dist/vagrant-manager-portable.exe'
- 'dist/vagrant-manager-i386.AppImage'
- 'dist/vagrant-manager-x86_64.AppImage'
- 'dist/vagrant-manager-i686.rpm'
- 'dist/vagrant-manager-x86_64.rpm'
- 'dist/vagrant-manager-amd64.deb'
- 'dist/vagrant-manager-i386.deb'
skip_cleanup: true
on:
tags: true