Skip to content
This repository was archived by the owner on Sep 1, 2024. It is now read-only.

Commit 181d8c9

Browse files
committed
[Tests] run tests with multiple react versions
1 parent 456b63c commit 181d8c9

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

.travis.yml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,7 @@ language: node_js
22
os:
33
- linux
44
node_js:
5-
- "11"
6-
- "10"
7-
- "8"
8-
- "6"
5+
- "lts/*"
96
cache:
107
directories:
118
- "node_modules"
@@ -16,7 +13,15 @@ matrix:
1613
include:
1714
- node_js: "lts/*"
1815
env: PRETEST=true
16+
before_script:
17+
- 'if [ -n "${REACT-}" ]; then npm install --no-save "react@~${REACT}" "react-dom@~${REACT}"; fi'
1918
script:
2019
- 'if [ -n "${PRETEST-}" ]; then yarn run pretest ; fi'
2120
- 'if [ -n "${TEST-}" ]; then yarn run tests-only ; fi'
22-
sudo: false
21+
sudo: false
22+
env:
23+
- REACT=0.14.9
24+
- REACT=15.0
25+
- REACT=15
26+
- REACT=16.0
27+
- REACT=16

0 commit comments

Comments
 (0)