forked from LN-Zap/zap-desktop
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
91 lines (78 loc) · 1.64 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
84
85
86
87
88
89
90
91
dist: trusty
sudo: required
env:
global:
- DEBUG=electron-builder
os:
- linux
- osx
language: node_js
node_js: '12'
cache:
apt: true
yarn: true
addons:
artifacts:
debug: true
paths:
- './screenshots'
apt:
packages:
- fluxbox
before_install:
- stty cols 80
- |
if [ $TRAVIS_OS_NAME == "linux" ]; then
sudo apt-get install gcc-multilib g++-multilib
fi
- curl -sL https://raw.githubusercontent.com/travis-ci/artifacts/master/install | bash
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:
- |
set -e
yarn lint-ci
yarn test-ci
yarn coveralls || travis_terminate 1
set +e
after_failure:
- artifacts upload ./screenshots
branches:
only:
- master
- next
- /^feat\//
jobs:
include:
- stage: deploy
name: Deploy to Github
if: (NOT type IN (pull_request)) AND (branch IN (master,next))
script: skip
deploy:
skip_cleanup: true
provider: script
script: yarn release --linux
on:
repo: LN-Zap/zap-desktop
all_branches: true
condition: $TRAVIS_BRANCH =~ ^master|next$
- os: osx
name: Deploy to Github
if: (NOT type IN (pull_request)) AND (branch IN (master,next))
script: skip
deploy:
skip_cleanup: true
provider: script
script: yarn release --mac
on:
repo: LN-Zap/zap-desktop
all_branches: true
condition: $TRAVIS_BRANCH =~ ^master|next$