diff options
author | XhmikosR <xhmikosr@gmail.com> | 2018-09-15 14:57:59 +0300 |
---|---|---|
committer | XhmikosR <xhmikosr@gmail.com> | 2018-09-16 01:52:14 +0300 |
commit | 3d17e3a93a50898200cc501f336158092c17a944 (patch) | |
tree | 26a209f871713867d53084ffb384812c43c6023c /.travis.yml | |
parent | 8cd485fcc8b22fae6904626c55e8c36d92dbd260 (diff) |
Travis: Don't install npm@5 when the current npm is newer.
Diffstat (limited to '.travis.yml')
-rw-r--r-- | .travis.yml | 2 |
1 files changed, 1 insertions, 1 deletions
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 |