Skip to content

Commit

Permalink
test both react 15.4 and react 15
Browse files Browse the repository at this point in the history
  • Loading branch information
nfcampos authored and ljharb committed Apr 12, 2017
1 parent c3f3519 commit 252040d
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
4 changes: 4 additions & 0 deletions install-relevant-react.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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 [email protected] && npm install",
"react:14": "rimraf node_modules/.bin/npm && npm run react:clean && npm i [email protected] [email protected] [email protected] && 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 [email protected] [email protected] [email protected] && 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",
Expand Down

0 comments on commit 252040d

Please sign in to comment.