-
Notifications
You must be signed in to change notification settings - Fork 3
/
.travis.yml
51 lines (46 loc) · 1.07 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
language: node_js
node_js:
- "lts/*"
# cache some files for faster builds
cache:
yarn: true
directories:
- node_modules
- $HOME/.cache/electron
- $HOME/.cache/electron-builder
# Add global environment
env:
global:
- ELECTRON_CACHE=$HOME/.cache/electron
- ELECTRON_BUILDER_CACHE=$HOME/.cache/electron-builder
# Making the build process parallel: one on mac and one on linux
jobs:
include:
- if: tag IS present
os: osx
osx_image: xcode11.1
script:
- yarn release:mw
before_cache:
- rm -rf $HOME/.cache/electron-builder/wine
- if: tag IS present
os: linux
dist: xenial
before_install:
- sudo apt-get install rpm
# Make apt-get update automatically on every build
# https://docs.travis-ci.com/user/installing-dependencies/
addons:
apt:
update: true
script:
- yarn release
deploy:
provider: releases
token: $GH_TOKEN # Your GitHub Generated Token
overwrite: true
cleanup: true
on:
tags: true
branch: master
edge: true