Skip to content

Commit c2a9255

Browse files
authored
Use yarn (#135)
1 parent 385ceab commit c2a9255

File tree

3 files changed

+3130
-10
lines changed

3 files changed

+3130
-10
lines changed

.travis.yml

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,41 @@
1-
sudo: false
1+
sudo: true
22

33
language: node_js
44

55
node_js:
6-
- "0.12"
76
- "4"
87
- "5"
98
- "6"
109

1110
cache:
1211
directories:
1312
# cache node modules
13+
- $HOME/.npm
14+
- $HOME/.yarn-cache
1415
- node_modules
1516

1617
notifications:
1718
# disable email notification
1819
email: false
1920

20-
install:
21+
before_install:
22+
# Repo for Yarn
23+
- sudo apt-key adv --keyserver pgp.mit.edu --recv D101F7899D41F3C3
24+
- echo "deb http://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
25+
- sudo apt-get update -qq
26+
- sudo apt-get install -y -qq yarn
27+
- yarn global add coveralls
28+
29+
install: yarn
30+
31+
before_script:
2132
# use firefox
2233
- export DISPLAY=:99.0
2334
- sh -e /etc/init.d/xvfb start
24-
- npm i
25-
- npm install -g coveralls
26-
27-
script:
2835
# remove unused node modules from cache
2936
- npm prune
30-
# karma tests
31-
- npm test
37+
38+
script: yarn test
3239

3340
after_script:
3441
# send code-coverage report to coveralls

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
"rxjs": "^5.0.0-beta.12 || ^5.0.0-rc.1"
3535
},
3636
"dependencies": {
37-
"apollo-client-rxjs": "~0.2.1",
37+
"apollo-client-rxjs": "~0.2.2",
3838
"lodash.assign": "^4.0.9",
3939
"lodash.forin": "^4.2.0",
4040
"lodash.isequal": "^4.2.0"

0 commit comments

Comments
 (0)