forked from getsentry/sentry-javascript
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
39 lines (37 loc) · 974 Bytes
/
.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
branches:
only:
- master
sudo: false
language: node_js
node_js:
- '8'
dist: trusty
cache:
directories:
- node_modules
before_install:
- curl -o- -L https://yarnpkg.com/install.sh | bash
- export PATH="$HOME/.yarn/bin:$PATH"
matrix:
include:
- env: NAME="raven-js"
addons:
chrome: stable
firefox: latest
sauce_connect: true
script:
- npm run test && if [ "$TRAVIS_SECURE_ENV_VARS" == "true" ]; then npm run test:ci; else exit 0; fi
- env: NAME="@sentry/browser"
install: true
script:
- yarn link
- cd packages/core && yarn link && yarn install && yarn dist
- cd ../browser
- yarn remove @sentry/core # this has to be removed once we released the package
- yarn link "@sentry/core"
- yarn link "raven-js"
- yarn install && yarn test
- env: NAME="@sentry/core"
install: true
script:
- cd packages/core && yarn install && yarn test