Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Jan 26, 2019. It is now read-only.

Fix travis build#302

Merged
DorianGrey merged 2 commits intowmonk:masterfromDorianGrey:travis-build-fix-attempt
Apr 27, 2018

Conversation

@DorianGrey
Copy link
Collaborator

A "work in progress" for now - seems that not all changes made it into the merge with 1.1.1 because we to separate the stuff that should go intoreact-scripts 2.0 from what is required in 1.x.
Just testing this for the moment and see how far I may get ...

@DorianGreyDorianGreyforce-pushed thetravis-build-fix-attempt branch 5 times, most recently from2c624b9 toe9d87b1CompareApril 13, 2018 09:37
@DorianGreyDorianGreyforce-pushed thetravis-build-fix-attempt branch frome9d87b1 to544ae2bCompareApril 13, 2018 09:39
@DorianGrey
Copy link
CollaboratorAuthor

@wmonk , things are getting green - yay!
A second look would be good, to take care I did not pick up something unintended. Stuff was picked from CRA's master branch that should not contain things planned for their 2.0 exclusively.

@DorianGreyDorianGrey requested a review fromwmonkApril 13, 2018 10:11
Copy link
Owner

@wmonkwmonk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Awesome work@DorianGrey 🎉

I have some comments that need to be addressed to get this fully finished, but they shouldn't be very big.

cd"$root_path"/packages/create-react-app
cli_path=$PWD/`npm pack`
cd"$temp_app_path"
npxcreate-react-app --scripts-version=1.0.17 test-app-version-number
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

I think--scripts-version here will installreact-scripts right?

Copy link
CollaboratorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

This test suite is disabled for now.

cd"$temp_app_path"
create_react_app --scripts-version=0.4.0 test-app-version-number
cd test-app-version-number
npx create-react-app --use-npm --scripts-version=1.0.17 test-use-npm-flag
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Same as above


cd"$temp_app_path"
create_react_app --scripts-version=https://registry.npmjs.org/react-scripts/-/react-scripts-0.4.0.tgz test-app-tarball-url
npx create-react-app --scripts-version=https://registry.npmjs.org/react-scripts/-/react-scripts-1.0.17.tgz test-app-tarball-url
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Same as above

exists node_modules/react-scripts
grep'"version": "0.4.0"' node_modules/react-scripts/package.json
[!-e"yarn.lock" ]&&echo"yarn.lock correctly does not exist"
grep'"version": "1.0.17"' node_modules/react-scripts/package.json
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Our version is different now


# Save App.js, we're going to modify it
cp src/App.tsx src/App.tsx.bak
cp src/App.js src/App.js.bak
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

This is the bit that shows we're installing the wrong version ofreact-scripts

Copy link
CollaboratorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Done.

# Install the app in a temporary location
cd$temp_app_path
create_react_app --scripts-version="$scripts_path" test-app
npx create-react-app test-app
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

This is the bit that needs to use thescripts_path variable for--scripts-version.

Copy link
CollaboratorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Done. Due to the new strategy with a local registry, it seems that we only need to provide--scripts-version=react-scripts-ts here.

.travis.yml Outdated
install:true
script:
-'if [ $TEST_SUITE = "simple" ]; then tasks/e2e-simple.sh; fi'
-'if [ $TEST_SUITE = "installs" ]; then tasks/e2e-installs.sh; fi'
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

I think we can just keepe2e-simple as the others test a lot of stuff fromcreate-react-app we don't care about.

Copy link
CollaboratorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Done.
install is disabled for now.

.travis.yml Outdated
# TODO: reenable after we ship 1.0.
# - node_js: 6
# env: USE_YARN=yes TEST_SUITE=simple
-TEST_SUITE=installs
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Can just keepsimple here.

Copy link
CollaboratorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Done.
install is disabled for now.

.travis.yml Outdated
-TEST_SUITE=kitchensink
matrix:
include:
-node_js:0.10
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

I don't think we want this line, more for testingcreate-react-app as far as I know.

Copy link
CollaboratorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Done.

@DorianGrey
Copy link
CollaboratorAuthor

Thanks for the review, I'm looking to fix these issue after my weekend vacation.

@wmonkwmonk mentioned this pull requestApr 13, 2018
@DorianGrey
Copy link
CollaboratorAuthor

I've disabled theinstalls test for now, since this will require a lot of additional work to be done.
I'm still working on the other ones - esp.e2e-simple.sh was changed a lot, now using a local registry instead of local packing. Still experimenting which parts have to reverted to the previous strategy.

@DorianGreyDorianGreyforce-pushed thetravis-build-fix-attempt branch from0a1f4ea to169a401CompareApril 17, 2018 07:35
@wmonk
Copy link
Owner

Awesome work@DorianGrey - is this ready to be merged?

@DorianGrey
Copy link
CollaboratorAuthor

Suppose, yes.

We might have to deal withe2e-installs.sh, but I don't think it's that important for now. I've just disabled the test suite and left a particular comment that additional work has to be done before activating this again.

@DorianGreyDorianGrey changed the title[W.I.P.] Attempt to fix travis buildFix travis buildApr 27, 2018
@DorianGreyDorianGrey merged commit97d5561 intowmonk:masterApr 27, 2018
sebald pushed a commit to sebald/create-react-app-typescript that referenced this pull requestMay 8, 2018
* master:  Stick @types/node to 9.6.7 to avoid problems with 10.0.0 (wmonk#315)  Fix travis build (wmonk#302)  v2.15.1  Update README For 2.15.1  fix(modules): remove duplicate mjs from jest config
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.

Reviewers

1 more reviewer

@wmonkwmonkwmonk approved these changes

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@DorianGrey@wmonk

[8]ページ先頭

©2009-2025 Movatter.jp