forked from getsentry/sentry-javascript
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
81 lines (73 loc) · 1.87 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
git:
depth: false # we need this to make proper releases
branches:
only:
- master
- /^release\/.+$/
- /^major\/.+$/
- 4.x
install: true
sudo: required
language: node_js
dist: bionic
cache:
yarn: true
directories:
- node_modules
matrix:
fast_finish: true
stages:
- Test
- Deploy
- Saucelabs
jobs:
include:
- stage: Test
name: '@sentry/packages - build + lint + test + codecov + danger [node v8]'
node_js: '8'
script: scripts/danger.sh
- name: '@sentry/packages - build and test [node v6]'
node_js: '6'
script: scripts/test.sh
- name: '@sentry/packages - build and test [node v10]'
node_js: '10'
script: scripts/test.sh
- name: '@sentry/browser - browserstack integration tests'
node_js: '10'
script: scripts/browser-integration.sh
- name: 'raven-node [node v4]'
if: branch = 4.x
node_js: '4'
script: scripts/raven-node.sh
- name: 'raven-node [node v6]'
if: branch = 4.x
node_js: '6'
script: scripts/raven-node.sh
- name: 'raven-node [node v8]'
if: branch = 4.x
node_js: '8'
script: scripts/raven-node.sh
- name: 'raven-node [node v10]'
if: branch = 4.x
node_js: '10'
script: scripts/raven-node.sh
- name: 'raven-js - unit and integration tests'
if: branch = 4.x
node_js: '8'
addons:
chrome: stable
firefox: latest
script: scripts/raven-js.sh
- stage: Deploy
name: '@sentry/packages - pack and zeus upload'
node_js: '10'
script: scripts/pack-and-upload.sh || [[ ! "$TRAVIS_BRANCH" =~ ^release/ ]]
notifications:
webhooks:
urls:
- https://zeus.ci/hooks/853ee4aa-d692-11e7-8c60-0a580a28020f/public/provider/travis/webhook
on_success: always
on_failure: always
on_start: always
on_cancel: always
on_error: always