forked from bugsnag/bugsnag-js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
69 lines (66 loc) · 1.99 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
sudo: required
dist: trusty
language: node_js
node_js:
- '10'
before_install:
- npm i -g [email protected]
- gem install bundler -v 1.16.1
install:
- bundle install
- npm install
before_script:
- npm run build
script:
- npm run test:e2e
env:
global:
- CC_TEST_REPORTER_ID: 6f5024bb1ebb518893991cf5d77e75e4819eaa6128fe21bf85ef3bf135cd49d2
- BROWSER_STACK_USERNAME: bugsnagplatforms1
- secure: "X29QA8LjTZL9RHnoiYlprpIbv264e//KjL3Q4A/vWZ8QbIRD2MY8w9wuIfQEYHLGa7kf1EAGPoH/Ka3raj7s5+J4hOeCeMC0ZWUWdAem35FE7zGm8wJrCKFK5GD9LF+1LRxK+gBfKfeaJkwcbjv7tl0DEW1JNC9PS4cpI0DRJzM="
matrix:
- BROWSER=ie_8
- BROWSER=ie_9
- BROWSER=ie_10
- BROWSER=ie_11
- BROWSER=edge_14
- BROWSER=edge_15
- BROWSER=safari_6
- BROWSER=safari_10
- BROWSER=opera_12
- BROWSER=iphone_7
- BROWSER=android_s8
- BROWSER=firefox_30
- BROWSER=firefox_56
- BROWSER=chrome_43
- BROWSER=chrome_61
addons:
browserstack:
username: bugsnagplatforms1
access_key:
secure: "lB2aZc0HzuinyhSJyP98lzDJTbZsroEOJTrS/flnLLsHb/C096zjhwkWexHnfmNIPaY5SB2FF0G6zcnknlmsXg5TgxQiK7bdyJmkcAetGi+cSKnGaBq7GZXVhbWh++MRnddQDGV6jrSr7aqrWf85ncq3L4//9BTV6uAhDBWu2bo="
stage: end to end tests
jobs:
include:
- stage: linting and type validation
before_install:
install: npm install
script: npm run test:lint && npm run test:types
env: BROWSER=na
- stage: unit and integration tests
before_install:
before_script:
- npm run build
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./bin/cc-test-reporter
- chmod +x ./bin/cc-test-reporter
install: npm install
script:
- npm run test:unit
- if [[ $BROWSER_STACK_ACCESS_KEY ]]; then npm run test:integration; fi
after_script:
- if [ $TRAVIS_TEST_RESULT == 0 ]; then ./bin/report-coverage; fi
env: BROWSER=na
stages:
- linting and type validation
- unit and integration tests
- end to end tests