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

Commit 68e5782

Browse files
committed
Install peerDependencies conditionally
1 parent f54c906 commit 68e5782

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.travis.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,9 @@ node_js:
1616
before_install:
1717
- export CXX="g++-4.8" CC="gcc-4.8"
1818
install:
19-
# When all dependencies declare bitcore-lib as a peerDependency this can be bumped up, but this matches the current version expected by dependencies
20-
- npm install [email protected]
19+
# Install peerDependencies on > npm3
20+
# When all dependencies declare bitcore-lib as a peerDependency this can be bumped up, but this matches the current ecosystem version expected by dependencies
21+
- if [ $(npm --version | sed 's/\..*//g') -ge 3 ]; then npm install [email protected]; fi
2122
- npm install
2223
after_success:
2324
- npm run coveralls

0 commit comments

Comments
 (0)