Skip to content

Commit

Permalink
chore: create new jobs for React next (fixes #726) (#728)
Browse files Browse the repository at this point in the history
- 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
  • Loading branch information
nickserv authored Jul 2, 2020
1 parent 386c64e commit 3c9d7b4
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,14 @@ node_js:
- 12
- 14
- node
env:
- REACT_NEXT=false
- REACT_NEXT=true
install:
- npm install
# as requested by the React team :)
# https://reactjs.org/blog/2019/10/22/react-release-channels.html#using-the-next-channel-for-integration-testing
- if [ "$TRAVIS_EVENT_TYPE" = "cron" ]; then npm install react@next
- if [ "$REACT_NEXT" = true ]; then npm install react@next
react-dom@next; fi
script:
- npm run validate
Expand All @@ -23,6 +26,8 @@ branches:
- beta

jobs:
allow_failures:
- env: REACT_NEXT=true
include:
- stage: release
node_js: 14
Expand Down

0 comments on commit 3c9d7b4

Please sign in to comment.