-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
73 lines (63 loc) · 2.3 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
# Language and enviroment
os: osx
language: node_js
node_js: node
# Track only a few branches
# Master Branch which holds release-level code
# Test branch which holds code in testing (alpha level changes)
# Next branch which holds code awaiting release (beta level changes)
# and tags that begin with a v and have one or more numbers seperated by periods
# ex: v1 v1.0 v1.0.0 v1.0.0.0
branches:
only:
- master
- test
- next
- dev
- /^v(?:\d+\.?){1,}$/
# Clone Depth, 1 is too small (according to docs) 3's about the usual suggested
git:
depth: 3
# Something to do with electron-build caching and whatnot to work correctly
env:
global:
- ELECTRON_CACHE=$HOME/.cache/electron
- ELECTRON_BUILDER_CACHE=$HOME/.cache/electron-builder
# Wipe wine cache in electron-builder cache, something to do with preventing
# build errors or wine errors
before_cache:
- rm -rf $HOME/.cache/electron-builder/wine
# Install RPM tools needed to build rpm files
# before_install:
# - brew install rpm
# Install everything in NPM
install:
- npm install
# Cache everything that needs caching
cache:
directories:
- node_modules
- $HOME/.cache/electron
- $HOME/.cache/electron-builder
# Build, Optimize, and Package
# Some of these build steps can take a while
script:
- npm run deploy
# If tagged then ship it out to GitHub on success
deploy:
provider: releases
api_key:
secure: DNjzANF11SKjNatxQVNbHQXh2T8xic28nD/ogaWN4pRPq2oN+SI4Von21bGkuifQ7l9tLnCSvBnuUHZtwWtXJKH8DREzbfAF5nV73c0K0n3WTg29NjZi4s09OMI7frQ/4TjdRYMusbN+nwEQudj0vFsscxuFSmCMNAsBUipnElEzEs6//z6Janx1++Xm+XP/MhXN7gK3wgOkrtLrchhPG3kuhimPmJf55XwJzEtwb9QqS5F5+yuq+y9G+oejAetV+936zJCF60djREXukoTN+UiuX2oZ+0HhmklwtSMcIDNo30S9WvrcnFLuip7nqFbGqLeQaCt/iv8QM2L58snE3SWyv9bIeJiecLHZu3N5Tz4wTO7gteZY4IF3ysUcYrJWZNap6BP8L7D/319usbhaOfLfQ6YR8CdrIkH4KINKIa+QYoC84Pn5EffHpcg5HcOge6yTO0twx+jmGDQ/ro3gAfPe1mpJC8+6xHCLm11OqdWHecTZqcx/r2DJK6cgj/JctJIwuKgC/aQDSI3fyrCw5nJeNgNtrbHNr714vlcO+pVBjXR5llwYE+EgcDE7GTfVEaZUstm5XGLQ5F3DBXPQ/Hror+9TPfSJEq/EVGld4zsVnw55vlCJyXBjRtA5B+uwXrq/yywxSC3/5OpiRN2p9+DfctUAglhkhw47vlnfMSU=
file_glob: true
skip_cleanup: true
file:
- "build/*.exe"
- "build/*.zip"
- "build/*.dmg"
- "build/*.AppImage"
- "build/*.deb"
- "build/*.rpm"
- "build/*.pacman"
- "build/*.tar.xz"
on:
tags: true