forked from streamlink/streamlink-twitch-gui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
56 lines (48 loc) · 1.06 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
language: node_js
sudo: required
dist: trusty
git:
# set a custom clone depth, so contributor data does not get lost
# running "git fetch --unshallow" in before_install is also an option
depth: 9999999
node_js:
- "6"
cache:
apt: true
directories:
- "node_modules"
- "bower_components"
- "build/cache"
before_install:
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
- "npm config set spin false"
- "npm install -g bower grunt-cli"
install:
- "npm install"
script:
# test and build
- grunt build:prod
# compile and package
- if [ -n "${TRAVIS_TAG}" ]; then build/travis/package.sh; fi
deploy:
- provider: releases
api_key: "${RELEASES_API_KEY}"
file: dist/*{.tar.gz,.zip,-checksums.txt}
file_glob: true
skip_cleanup: true
on:
tags: true
- provider: script
script: node build/travis/update_release.js
skip_cleanup: true
on:
tags: true
notifications:
email: false
webhooks:
urls:
- "${WEBHOOK_GITTER}"
on_success: change
on_failure: always
on_start: never