aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXhmikosR <[email protected]>2018-09-15 14:57:59 +0300
committerXhmikosR <[email protected]>2018-09-16 01:52:14 +0300
commit3d17e3a93a50898200cc501f336158092c17a944 (patch)
tree26a209f871713867d53084ffb384812c43c6023c
parent8cd485fcc8b22fae6904626c55e8c36d92dbd260 (diff)
downloadbootstrap-3d17e3a93a50898200cc501f336158092c17a944.tar.xz
bootstrap-3d17e3a93a50898200cc501f336158092c17a944.zip
Travis: Don't install npm@5 when the current npm is newer.
-rw-r--r--.travis.yml2
1 files changed, 1 insertions, 1 deletions
diff --git a/.travis.yml b/.travis.yml
index d4a73d026..85ad14526 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