forked from LN-Zap/zap-desktop
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
80 lines (67 loc) · 1.44 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
74
75
76
77
78
79
80
sudo: false
language: node_js
env:
global:
- DEBUG=electron-builder
os:
- linux
- osx
node_js:
- node
- lts/*
cache:
apt: true
yarn: true
directories:
- node_modules
- flow-typed
- app/node_modules
addons:
apt:
packages:
- xvfb
install:
- yarn
- |
if [ $TRAVIS_OS_NAME == "linux" ]; then
/sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_99.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :99 -ac -screen 0 1280x1024x16
fi
before_script:
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start &
- sleep 3
script:
- yarn lint-ci || travis_terminate 1
- yarn build || travis_terminate 1
- yarn test-ci || travis_terminate 1
- yarn coveralls || travis_terminate 1
after_success:
- test $TRAVIS_REPO_SLUG = 'LN-Zap/zap-desktop' &&
test $TRAVIS_BRANCH = "master" &&
test $TRAVIS_PULL_REQUEST = "false" &&
yarn storybook:deploy
branches:
only:
- master
jobs:
include:
- stage: deploy
name: Deploy to Github
script: skip
deploy:
skip_cleanup: true
provider: script
script: yarn release --linux
on:
repo: LN-Zap/zap-desktop
branch: master
- os: osx
name: Deploy to Github
script: skip
deploy:
skip_cleanup: true
provider: script
script: yarn release --mac
on:
repo: LN-Zap/zap-desktop
branch: master