Skip to content

Commit 5520e32

Browse files
committed
Install peerDependencies conditionally
1 parent 523e162 commit 5520e32

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.travis.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ node_js:
1515
- "v0.12.7"
1616
- "v4"
1717
script:
18-
# When all dependencies declare bitcore-lib as a peerDependency this can be bumped up, but this matches the current version expected by dependencies
19-
- npm install bitcore-lib@0.13.7
20-
- npm install
18+
# Install peerDependencies on > npm3
19+
# When all dependencies declare bitcore-lib as a peerDependency this can be bumped up, but this matches the current ecosystem version expected by dependencies
20+
- if [ $(npm --version | sed 's/\..*//g') -ge 3 ]; then npm install [email protected]; fi
2121
- npm run regtest
2222
- npm run test
2323
- npm run jshint

0 commit comments

Comments
 (0)