-
Notifications
You must be signed in to change notification settings - Fork 179
/
.travis.yml
48 lines (44 loc) · 1.11 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
sudo: false
language: node_js
node_js: "8.16.0"
cache:
directories:
- node_modules
- $HOME/.cache/electron
- $HOME/.cache/electron-builder
- $HOME/.npm/_prebuilds
env:
global:
- ELECTRON_CACHE=$HOME/.cache/electron
- ELECTRON_BUILDER_CACHE=$HOME/.cache/electron-builder
- YARN_GPG=no
jobs:
include:
- stage: Build for Mac
os: osx
osx_image: xcode10.1
before_script:
- if [ "$TRAVIS_OS_NAME" = osx ]; then chmod +x add-osx-cert.sh; fi
- if [ "$TRAVIS_OS_NAME" = osx ]; then ./add-osx-cert.sh; fi
- node pre-build.js
script:
- yarn run dist
- yarn run publish always
before_cache:
- rm -rf $HOME/.cache/electron-builder/wine
- stage: Build for Windows
os: windows
language: node_js
before_script:
- node pre-build.js
script:
- yarn run dist
- yarn run publish onTagOrDraft
- stage: Build for linux
os: linux
dist: trusty
before_script:
- node pre-build.js
script:
- yarn run dist
- yarn run publish onTagOrDraft