forked from apollographql/apollo-client
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
31 lines (25 loc) · 766 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
language: node_js
node_js:
- "8"
matrix:
include:
- sudo: false
env: MODE=TEST
- sudo: true
env: MODE=BENCHMARK
install:
- npm run bootstrap
- npm prune
script:
- if [ "$MODE" = "TEST" ]; then npm run danger; fi
# using jest --coverage also runs the tests so this will cut down CI time
- if [ "$MODE" = "TEST" ]; then npm run coverage; fi
# run coverage and file size checks
# this is timing out?
- if [ "$MODE" = "TEST" ]; then npm run coverage:upload || true; fi #ignore failures
# make sure files don't get too large
- if [ "$MODE" = "TEST" ]; then npm run filesize; fi
# check benchmarks for performance drops
- if [ "$MODE" = "BENCHMARK" ]; then npm run benchmark; fi
notifications:
email: false