forked from kamilkisiela/apollo-angular
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
39 lines (31 loc) · 788 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
sudo: false
language: node_js
node_js:
- "6"
cache:
directories:
# cache node modules
- $HOME/.npm
- $HOME/.yarn-cache
- node_modules
- examples/hello-world/node_modules
notifications:
# disable email notification
email: false
before_install:
# Repo for Yarn
- curl -o- -L https://yarnpkg.com/install.sh | bash
- export PATH=$HOME/.yarn/bin:$PATH
- yarn global add coveralls
# remove unused node modules from cache
- npm prune
- (cd examples/hello-world && npm prune)
install:
- yarn
- (cd examples/hello-world && rm -rf node_modules/apollo-angular && npm i)
script:
- yarn test
- (cd examples/hello-world && npm test)
after_script:
# send code-coverage report to coveralls
- coveralls < ./coverage/remapped/lcov.info || true