forked from MayGo/tockler
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
61 lines (53 loc) · 1.37 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
matrix:
include:
- os: osx
osx_image: xcode11
- os: linux
env: CC=clang CXX=clang++ npm_config_clang=1
compiler: clang
addons:
apt:
packages:
- libgnome-keyring-dev
- icnsutils
- graphicsmagick
sudo: true
language: node_js
node_js:
- '13'
cache:
timeout: 600
directories:
- node_modules
- electron/node_modules
- client/node_modules
- $HOME/.electron
before_script:
- echo "SENTRY_DSN=$SENTRY_DSN" >> ./electron/.env
- sentry-cli releases set-commits "$PACKAGE_VERSION" --commit "$TRAVIS_REPO_SLUG@$TRAVIS_COMMIT"
- sentry-cli releases new "$PACKAGE_VERSION"
after_success:
- sentry-cli releases files "$PACKAGE_VERSION" upload-sourcemaps ./client/build/static/js/ --rewrite --url-prefix "~/dist/static/js"
- sentry-cli releases files "$PACKAGE_VERSION" list
- sentry-cli releases finalize "$PACKAGE_VERSION"
install:
- npm install -g sentry-cli-binary
- cd electron
- PACKAGE_VERSION=$(node -p -e "require('./package.json').version")
- npm install
- cd ..
- cd client
- npm install
- cd ..
script:
- cd client
- npm run build
- cd ..
- cd electron
- npm run build
- npm run prepare_client
- travis_wait 80 npm run release
- cd ..
branches:
only:
- master