forked from MayGo/tockler
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
72 lines (63 loc) · 1.83 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
language: node_js
node_js:
- '21'
matrix:
include:
- os: osx
osx_image: xcode11
- os: linux
dist: bionic
env: CC=clang CXX=clang++ npm_config_clang=1
compiler: clang
sudo: required
addons:
apt:
packages:
- libgnome-keyring-dev
- icnsutils
- graphicsmagick
env:
global:
- ELECTRON_CACHE=$HOME/.cache/electron
- ELECTRON_BUILDER_CACHE=$HOME/.cache/electron-builder
cache:
timeout: 1000
directories:
- node_modules
- electron/node_modules
- client/node_modules
- $HOME/.electron
- $HOME/.cache/electron
- $HOME/.cache/electron-builder
- $HOME/.npm/_prebuilds
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:
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo snap install snapcraft --classic; fi
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then echo "$SNAP_TOKEN" | snapcraft login --with -; fi
- 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 ./scripts/travis-release.sh
- cd ..
branches:
only:
- master