Skip to content

Commit c367194

Browse files
committed
Install peerDependencies conditionally
1 parent c090e45 commit c367194

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.travis.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@ before_install:
66
- export DISPLAY=:99.0
77
- sh -e /etc/init.d/xvfb start
88
install:
9+
# Install peerDependencies on > npm3
10+
# When all dependencies declare bitcore-lib as a peerDependency this can be bumped up, but this matches the current ecosystem version expected by dependencies
11+
- if [ $(npm --version | sed 's/\..*//g') -ge 3 ]; then npm install [email protected]; fi
912
- npm install
10-
- npm install bitcore-lib
1113
after_script:
1214
- gulp coveralls

0 commit comments

Comments
 (0)