Skip to content
This repository was archived by the owner on Apr 11, 2024. It is now read-only.

Commit 8e82beb

Browse files
committed
Use yarn.
1 parent c7946f4 commit 8e82beb

File tree

2 files changed

+806
-12
lines changed

2 files changed

+806
-12
lines changed

.travis.yml

Lines changed: 32 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,53 @@
11
language: node_js
22
sudo: false
33
node_js:
4-
- "6"
4+
- 6
5+
56
cache:
67
directories:
78
- $HOME/.npm
9+
- $HOME/.yarn-cache
10+
811
env:
912
global:
10-
- BIN="node" ISTANBUL=false
11-
- secure: "XOINlYZG3DYXq5agQXvkad2MfnOO/+z40fn37RKfNuxNI5veBK7tPRcCIQ998o+NyVTpyd3NZhqkowCxAL8bp4HJ81SesRKQSaXoSzgV7CnloxLxcduiiRJ6lnxFGgCbpqyLxZHWr0mQugcLhs5nhiZ5Dnw6dZxYX/oKKvOomZA="
13+
- BIN=node ISTANBUL=false
14+
- secure: XOINlYZG3DYXq5agQXvkad2MfnOO/+z40fn37RKfNuxNI5veBK7tPRcCIQ998o+NyVTpyd3NZhqkowCxAL8bp4HJ81SesRKQSaXoSzgV7CnloxLxcduiiRJ6lnxFGgCbpqyLxZHWr0mQugcLhs5nhiZ5Dnw6dZxYX/oKKvOomZA=
1215
matrix:
1316
-
1417
- ISTANBUL=true
15-
- BIN="phantomjs"
18+
- BIN=phantomjs
19+
1620
matrix:
1721
include:
18-
- node_js: "4"
22+
- node_js: 4
1923
env:
24+
2025
git:
2126
depth: 10
27+
2228
branches:
2329
only:
2430
- master
31+
2532
before_install:
26-
- "nvm use $TRAVIS_NODE_VERSION"
27-
- "npm set loglevel error"
28-
- "npm set progress false"
29-
- "npm i -g npm@\"^2.0.0\""
33+
# Use exact Node version.
34+
- nvm use $TRAVIS_NODE_VERSION
35+
36+
# Setup package managers.
37+
- npm set loglevel error
38+
- npm set progress false
39+
- npm i -g yarn
40+
- yarn -V
41+
42+
install:
43+
# Install packages.
44+
- yarn
45+
3046
script:
31-
- "[ $ISTANBUL == false ] || (istanbul cover -x \"**/vendor/**\" --report lcovonly ./test/test.js && cat ./coverage/lcov.info | coveralls && rm -rf ./coverage) || true"
32-
- "[ $ISTANBUL == true ] || cd ./test"
33-
- "[ $ISTANBUL == true ] || $BIN ./test.js"
47+
- |
48+
if [ $ISTANBUL = true ]; then
49+
istanbul cover -x "**/vendor/**" --report lcovonly ./test/test.js && cat ./coverage/lcov.info | coveralls && rm -rf ./coverage
50+
else
51+
cd ./test
52+
$BIN ./test.js
53+
fi

0 commit comments

Comments
 (0)