-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.travis.yml
50 lines (41 loc) · 931 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
language: node_js
node_js:
- node
dist: trusty
sudo: false
# Setup xvfb
# https://github.com/electron/electron/blob/master/docs/tutorial/testing-on-headless-ci.md
# Install yarn
# https://github.com/travis-ci/travis-ci/issues/6720#issuecomment-285981417
addons:
apt:
sources:
- sourceline: 'deb https://dl.yarnpkg.com/debian/ stable main'
key_url: 'https://dl.yarnpkg.com/debian/pubkey.gpg'
packages:
- xvfb
- yarn
before_install:
- export PATH=/usr/bin:$PATH
- export DISPLAY=':99.0'
- Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &
install:
- yarn install
- yarn upgrade
script:
- yarn build:production
- yarn test
- yarn test:api
after_success:
- yarn codecov
- bash bin/deploy.sh
cache:
yarn: true
directories:
- node_modules
branches:
except:
- /^v\d+\.\d+\.\d+$/
- gh-pages
notifications:
webhooks: http://webhook.hakatashi.com/travis