Skip to content

Commit 1bb6919

Browse files
committed
Install peerDependencies conditionally
1 parent be7c3d1 commit 1bb6919

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.travis.yml

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

0 commit comments

Comments
 (0)