From: XhmikosR Date: Sat, 15 Sep 2018 11:57:59 +0000 (+0300) Subject: Travis: Don't install npm@5 when the current npm is newer. X-Git-Tag: v4.2.0~321 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3d17e3a93a50898200cc501f336158092c17a944;p=thirdparty%2Fbootstrap.git Travis: Don't install npm@5 when the current npm is newer. --- diff --git a/.travis.yml b/.travis.yml index d4a73d0264..85ad14526e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -9,7 +9,7 @@ node_js: - "6" - "8" before_install: - - if [[ `npm -v` != 5* ]]; then npm install -g npm@5; fi + - if [[ $(npm -v | cut -d. -f1) -lt "5" ]]; then npm install -g npm@5; fi install: - bundle install --deployment --jobs=3 --retry=3 - npm install