This repository has been archived by the owner on Jul 17, 2020. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.travis.yml
52 lines (52 loc) · 1.54 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
# Only build tags
if: tag IS present
language: node_js
node_js: '10'
jobs:
include:
- name: "Build on Windows"
os: windows
env:
- ELECTRON_CACHE=$HOME/.cache/electron
- ELECTRON_BUILDER_CACHE=$HOME/.cache/electron-builder
- USE_HARD_LINKS=false
- YARN_GPG=no
- name: "Build on macOS"
os: osx
osx_image: xcode10.2
env:
- ELECTRON_CACHE=$HOME/.cache/electron
- ELECTRON_BUILDER_CACHE=$HOME/.cache/electron-builder
- USE_HARD_LINKS=false
- name: "Build on Linux"
os: linux
dist: xenial
env:
- ELECTRON_CACHE=$HOME/.cache/electron
- ELECTRON_BUILDER_CACHE=$HOME/.cache/electron-builder
- USE_HARD_LINKS=false
cache:
directories:
- node_modules
- "$HOME/.cache/electron"
- "$HOME/.cache/electron-builder"
before_install:
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then wget https://github.com/Palakis/obs-ndi/releases/download/4.9.0/libndi4_4.5.1-1_amd64.deb && sudo dpkg -i libndi4_4.5.1-1_amd64.deb; fi
script:
- if [ "$TRAVIS_OS_NAME" = "windows" ]; then yarn run electron:build -w --publish=never; fi
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then yarn run electron:build -m --publish=never; fi
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then yarn run electron:build -l --publish=never; fi
before_cache:
- rm -rf $HOME/.cache/electron-builder/wine
branches:
except:
- "/^v\\d+\\.\\d+\\.\\d+$/"
deploy:
provider: releases
api_key: $GITHUB_TOKEN
file_glob: true
skip_cleanup: true
file: "./dist_electron/*.{exe,snap,dmg,AppImage}"
on:
repo: vcync/modv-3
all_branches: true