Skip to content

Commit

Permalink
Fixed failing travis builds (SheetJS#2040)
Browse files Browse the repository at this point in the history
* Added condition npm install to travis

* Updated node_version.sh perms
  • Loading branch information
garrettluu authored Jul 2, 2020
1 parent 8795f86 commit 93ec51e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ matrix:

before_install:
- "npm config set strict-ssl false"
# - "npm install -g [email protected]"
- "./misc/node_version.sh"
- "npm install -g [email protected] voc"
- "npm install blanket"
- "npm install word"
Expand Down
11 changes: 11 additions & 0 deletions misc/node_version.sh
Original file line number Diff line number Diff line change
@@ -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 [email protected]
fi

0 comments on commit 93ec51e

Please sign in to comment.