-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
56 lines (43 loc) · 1.2 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
osx_image: xcode8.4
dist: trusty
language: node_js
node_js: "12.14.1"
env:
global:
- ELECTRON_CACHE=$HOME/.cache/electron
- ELECTRON_BUILDER_CACHE=$HOME/.cache/electron-builder
os:
- osx
cache:
yarn: true
directories:
- node_modules
- $HOME/.cache/electron
- $HOME/.cache/electron-builder
- $HOME/.npm/_prebuilds
before_install:
- mkdir -p /tmp/git-lfs && curl -L https://github.com/github/git-lfs/releases/download/v2.2.0/git-lfs-$([ "$TRAVIS_OS_NAME" == "linux" ] && echo "linux" || echo "darwin")-amd64-2.2.0.tar.gz | tar -xz -C /tmp/git-lfs --strip-components 1 && /tmp/git-lfs/git-lfs pull
- rm .npmrc
- rm .yarnrc
- rm yarn.lock
install:
- yarn install
script:
- yarn build
- yarn package
before_cache:
- rm -rf $HOME/.cache/electron-builder/wine
branches:
except:
- "/^v\\d+\\.\\d+\\.\\d+$/"
notifications:
webhooks:
urls:
- https://open.feishu.cn/officialapp/notify/a5bd828f2478841a9cc4b318fef63edc62c494a313c1c131f34da8437eb0fa0d
on_success: never # default: always
on_failure: always # default: always
on_start: never # default: never
on_cancel: never # default: always
on_error: always # default: always
git:
submodules: false