From 5520e32180ae6102e1cedf66def2d68b3a043e84 Mon Sep 17 00:00:00 2001 From: John Dean Date: Sat, 25 Mar 2017 17:45:14 -0500 Subject: [PATCH] Install peerDependencies conditionally --- .travis.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 39b4512f1..314c9dbe5 100644 --- a/.travis.yml +++ b/.travis.yml @@ -15,9 +15,9 @@ node_js: - "v0.12.7" - "v4" script: -# When all dependencies declare bitcore-lib as a peerDependency this can be bumped up, but this matches the current version expected by dependencies - - npm install bitcore-lib@0.13.7 - - npm install + # Install peerDependencies on > npm3 + # When all dependencies declare bitcore-lib as a peerDependency this can be bumped up, but this matches the current ecosystem version expected by dependencies + - if [ $(npm --version | sed 's/\..*//g') -ge 3 ]; then npm install bitcore-lib@0.13.7; fi - npm run regtest - npm run test - npm run jshint