forked from sheetjs/sheetjs
Fixed failing travis builds (#2040)
* Added condition npm install to travis * Updated node_version.sh perms
This commit is contained in:
parent
8795f86e12
commit
93ec51ec76
@ -44,7 +44,7 @@ matrix:
|
|||||||
|
|
||||||
before_install:
|
before_install:
|
||||||
- "npm config set strict-ssl false"
|
- "npm config set strict-ssl false"
|
||||||
# - "npm install -g npm@4.3.0"
|
- "./misc/node_version.sh"
|
||||||
- "npm install -g mocha@2.x voc"
|
- "npm install -g mocha@2.x voc"
|
||||||
- "npm install blanket"
|
- "npm install blanket"
|
||||||
- "npm install word"
|
- "npm install word"
|
||||||
|
11
misc/node_version.sh
Executable file
11
misc/node_version.sh
Executable file
@ -0,0 +1,11 @@
|
|||||||
|
#! /usr/bin/env bash
|
||||||
|
|
||||||
|
# This script will check the current version of node and install another version
|
||||||
|
# of npm if node is version 0.8
|
||||||
|
|
||||||
|
version=$(node --version)
|
||||||
|
|
||||||
|
if [[ $version =~ v0\.8\. ]]
|
||||||
|
then
|
||||||
|
npm install -g npm@4.3.0
|
||||||
|
fi
|
Loading…
Reference in New Issue
Block a user