Skip to content

Commit 93ec51e

Browse files
authored
Fixed failing travis builds (#2040)
* Added condition npm install to travis * Updated node_version.sh perms
1 parent 8795f86 commit 93ec51e

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ matrix:
4444

4545
before_install:
4646
- "npm config set strict-ssl false"
47-
# - "npm install -g [email protected]"
47+
- "./misc/node_version.sh"
4848
- "npm install -g [email protected] voc"
4949
- "npm install blanket"
5050
- "npm install word"

misc/node_version.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#! /usr/bin/env bash
2+
3+
# This script will check the current version of node and install another version
4+
# of npm if node is version 0.8
5+
6+
version=$(node --version)
7+
8+
if [[ $version =~ v0\.8\. ]]
9+
then
10+
npm install -g [email protected]
11+
fi

0 commit comments

Comments
 (0)