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