forked from oscartbeaumont/ElectronPlayer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
51 lines (44 loc) · 1008 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
language: node_js
node_js:
- "11"
os:
- linux
- osx
# - windows # TODO: Enable Once Widevine Package Supports Windows
# TEMP Fix: https://travis-ci.community/t/snap-deployment-stopped-working-out-of-nowhere/6908
deploy:
edge: true
cache:
yarn: true
directories:
- node_modules
- $HOME/.cache/electron
- $HOME/.cache/electron-builder
addons:
apt:
packages:
- graphviz
install:
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then ln -s package.linux.json package.json; fi
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then ln -s package.mac.json package.json; fi
- yarn --pure-lockfile
script:
- yarn test
- if [ "$TRAVIS_TAG" ]; then yarn build; fi
deploy:
- provider: releases
api-key: $GH_TOKEN
file_glob: true
file:
- dist/*.dmg
- dist/*.AppImage
skip_cleanup: true
on:
tags: true
- provider: snap
snap: dist/*.snap
channel: stable
skip_cleanup: true
on:
tags: true
condition: $TRAVIS_OS_NAME = linux