forked from LN-Zap/zap-desktop
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
83 lines (70 loc) · 1.45 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
81
82
83
dist: trusty
sudo: required
env:
global:
- DEBUG=electron-builder
os:
- linux
- osx
language: node_js
node_js: stable
cache:
apt: true
yarn: true
directories:
- node_modules
- flow-typed
- app/node_modules
addons:
apt:
packages:
- fluxbox
before_install:
- stty cols 80
install:
- yarn
before_script:
- |
if [ $TRAVIS_OS_NAME == "linux" ]; then
export DISPLAY=:99.0
sh -e /etc/init.d/xvfb start
sleep 3
fluxbox >/dev/null 2>&1 &
fi
script:
- yarn lint-ci || 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
- next
jobs:
include:
- stage: deploy
name: Deploy to Github
if: (NOT type IN (pull_request)) AND (branch = master)
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
if: (NOT type IN (pull_request)) AND (branch = master)
script: skip
deploy:
skip_cleanup: true
provider: script
script: yarn release --mac
on:
repo: LN-Zap/zap-desktop
branch: master