-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
.travis.yml
52 lines (48 loc) · 1023 Bytes
/
.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
os:
# - linux
- osx
# - windows
dist: xenial
osx_image: xcode8
language: node_js
node_js:
- '10'
cache:
directories:
- node_modules
- $HOME/.cache/electron
- $HOME/.cache/electron-builder
- $HOME/.npm/_prebuilds
- $HOME/Library/Caches/Homebrew
env:
global:
- ELECTRON_CACHE=$HOME/.cache/electron
- ELECTRON_BUILDER_CACHE=$HOME/.cache/electron-builder
addons:
homebrew:
packages:
- git-lfs
# before_install:
# - git lfs install
jobs:
include:
- stage: Test
script:
- npm test
- stage: Deploy Windows & Mac
if: tag IS present
os: osx
osx_image: xcode10.2
before_script:
- echo -e "machine github.com\n login $GITHUB_TOKEN" > ~/.netrc
- git lfs pull
script:
- npm run release -- --mac --win
before_cache:
- rm -rf $HOME/.cache/electron-builder/wine
# - stage: Deploy linux
# if: tag IS present
# os: linux
# dist: trusty
# script:
# - npm run release