From 252040d56bfd4995be8b000a3c9d1989cfdead73 Mon Sep 17 00:00:00 2001 From: Nuno Campos Date: Sun, 9 Apr 2017 08:40:21 +0200 Subject: [PATCH] test both react 15.4 and react 15 --- .travis.yml | 2 ++ install-relevant-react.sh | 4 ++++ package.json | 7 ++++--- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 87cc3f0cd..c3eaa0f44 100644 --- a/.travis.yml +++ b/.travis.yml @@ -35,6 +35,8 @@ matrix: env: KARMA=true REACT=0.13 - node_js: "6" env: KARMA=true REACT=0.14 + - node_js: "6" + env: KARMA=true REACT=15.4 - node_js: "6" env: KARMA=true REACT=15 allow_failures: diff --git a/install-relevant-react.sh b/install-relevant-react.sh index 6619dda6b..6303d0ffe 100644 --- a/install-relevant-react.sh +++ b/install-relevant-react.sh @@ -12,6 +12,10 @@ if [ "$REACT" = "0.14" ]; then npm run react:14 fi +if [ "$REACT" = "15.4" ]; then + npm run react:15.4 +fi + if [ "$REACT" = "15" ]; then npm run react:15 fi diff --git a/package.json b/package.json index 7f77372fc..37fcca523 100644 --- a/package.json +++ b/package.json @@ -19,11 +19,12 @@ "test:watch": "mocha --recursive --watch test", "test:karma": "karma start", "test:env": "sh ./example-test.sh", - "test:all": "npm run react:13 && npm run test:only && npm run react:14 && npm run test:only && npm run react:15 && npm run test:only", - "react:clean": "rimraf node_modules/react node_modules/react-dom node_modules/react-addons-test-utils", + "test:all": "npm run react:13 && npm run test:only && npm run react:14 && npm run test:only && npm run react:15.4 && npm run test:only && npm run react:15 && npm run test:only", + "react:clean": "rimraf node_modules/react node_modules/react-dom node_modules/react-addons-test-utils node_modules/create-react-class node_modules/react-test-renderer", "react:13": "rimraf node_modules/.bin/npm && npm run react:clean && npm i react@0.13 && npm install", "react:14": "rimraf node_modules/.bin/npm && npm run react:clean && npm i react@0.14 react-dom@0.14 react-addons-test-utils@0.14 && npm install", - "react:15": "rimraf node_modules/.bin/npm && npm run react:clean && npm i react@15 react-dom@15 react-addons-test-utils@15 create-react-class@15 react-test-renderer@15 && npm install", + "react:15.4": "rimraf node_modules/.bin/npm && npm run react:clean && npm i react@15.4 react-dom@15.4 react-addons-test-utils@15.4 && npm install", + "react:15": "rimraf node_modules/.bin/npm && npm run react:clean && npm i react@15 react-dom@15 create-react-class@15 react-test-renderer@15 && npm install", "docs:clean": "rimraf _book", "docs:prepare": "gitbook install", "docs:build": "npm run docs:prepare && gitbook build",