updated travis tests

Co-authored-by: Garrett Luu <garrettluu131@gmail.com>
This commit is contained in:
SheetJS 2020-07-02 02:04:50 -04:00
parent 6cdd7ac629
commit e71eeda4d2
2 changed files with 29 additions and 7 deletions

View File

@ -1,5 +1,11 @@
language: node_js
dist: xenial
node_js:
- "14"
- "13"
- "12"
- "11"
- "10"
- "9"
- "8"
- "7"
@ -11,24 +17,29 @@ node_js:
- "0.8"
matrix:
include:
- node_js: "6"
- node_js: "14"
env: TZ="America/New_York"
- node_js: "8"
- node_js: "12"
env: TZ="America/Los_Angeles"
- node_js: "6"
- node_js: "10"
env: TZ="Europe/London"
- node_js: "8"
env: TZ="Europe/Berlin"
- node_js: "9"
- node_js: "6"
env: TZ="Asia/Kolkata"
- node_js: "7"
- node_js: "4"
env: TZ="Asia/Shanghai"
- node_js: "8"
- node_js: "0.12"
env: TZ="Asia/Seoul"
before_install:
- "npm install -g npm@4.3.0"
- "npm config set strict-ssl false"
- "./misc/node_version.sh"
- "npm install -g mocha@2.x voc"
- "npm install blanket"
- "npm install word"
- "npm install coveralls mocha-lcov-reporter"
install:
- npm install
after_success:
- "make coveralls"

11
misc/node_version.sh Executable file
View 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