Skip to content

Commit a7297b3

Browse files
authored
chore: create new jobs for React next (fixes #726)
- Tests with both React stable and next for all builds (push and cron) - Allow next releases to fail the build so we can still release - Solves cron issues like #726 that are only caused by next releases
1 parent 386c64e commit a7297b3

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.travis.yml

+6-1
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,14 @@ node_js:
88
- 12
99
- 14
1010
- node
11+
env:
12+
- REACT_NEXT=false
13+
- REACT_NEXT=true
1114
install:
1215
- npm install
1316
# as requested by the React team :)
1417
# https://reactjs.org/blog/2019/10/22/react-release-channels.html#using-the-next-channel-for-integration-testing
15-
- if [ "$TRAVIS_EVENT_TYPE" = "cron" ]; then npm install react@next
18+
- if [ "$REACT_NEXT" = true ]; then npm install react@next
1619
react-dom@next; fi
1720
script:
1821
- npm run validate
@@ -23,6 +26,8 @@ branches:
2326
- beta
2427

2528
jobs:
29+
allow_failures:
30+
- env: REACT_NEXT=true
2631
include:
2732
- stage: release
2833
node_js: 14

0 commit comments

Comments
 (0)