From a7297b37e14bb35f9083a39a7b8e35443e687f70 Mon Sep 17 00:00:00 2001 From: Nick McCurdy Date: Wed, 1 Jul 2020 14:02:00 -0400 Subject: [PATCH] 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 --- .travis.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index ac04499f..c2f47b7a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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 @@ -23,6 +26,8 @@ branches: - beta jobs: + allow_failures: + - env: REACT_NEXT=true include: - stage: release node_js: 14