From e71eeda4d2a8fb23ba8782dfa7f3688d8e19aa5e Mon Sep 17 00:00:00 2001 From: SheetJS Date: Thu, 2 Jul 2020 02:04:50 -0400 Subject: [PATCH] updated travis tests Co-authored-by: Garrett Luu --- .travis.yml | 25 ++++++++++++++++++------- misc/node_version.sh | 11 +++++++++++ 2 files changed, 29 insertions(+), 7 deletions(-) create mode 100755 misc/node_version.sh diff --git a/.travis.yml b/.travis.yml index 95dd0a1..7b07c0e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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" diff --git a/misc/node_version.sh b/misc/node_version.sh new file mode 100755 index 0000000..da9b9e0 --- /dev/null +++ b/misc/node_version.sh @@ -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 \ No newline at end of file