From 181d8c98b3faa302060f30d91d2f858bfad712b0 Mon Sep 17 00:00:00 2001 From: Jordan Harband Date: Sun, 10 Feb 2019 21:14:19 -0800 Subject: [PATCH] [Tests] run tests with multiple react versions --- .travis.yml | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/.travis.yml b/.travis.yml index 2af11f2..b098652 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,10 +2,7 @@ language: node_js os: - linux node_js: - - "11" - - "10" - - "8" - - "6" + - "lts/*" cache: directories: - "node_modules" @@ -16,7 +13,15 @@ matrix: include: - node_js: "lts/*" env: PRETEST=true +before_script: + - 'if [ -n "${REACT-}" ]; then npm install --no-save "react@~${REACT}" "react-dom@~${REACT}"; fi' script: - 'if [ -n "${PRETEST-}" ]; then yarn run pretest ; fi' - 'if [ -n "${TEST-}" ]; then yarn run tests-only ; fi' -sudo: false \ No newline at end of file +sudo: false +env: + - REACT=0.14.9 + - REACT=15.0 + - REACT=15 + - REACT=16.0 + - REACT=16 \ No newline at end of file