-
Notifications
You must be signed in to change notification settings - Fork 10.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
test: fix failing path prefix test by updating gatsby/cli version #8362
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,15 @@ | ||
#!/bin/bash | ||
SRC_PATH=$1 | ||
CUSTOM_COMMAND="${2:-test}" | ||
GATSBY_PATH="/home/circleci/project" | ||
GATSBY_PATH="${CIRCLE_WORKING_DIRECTORY:-../../}" | ||
|
||
sudo npm install -g gatsby-dev-cli && | ||
|
||
# setting up child integration test link to gatsby packages | ||
cd $SRC_PATH && | ||
yarn && | ||
gatsby-dev --set-path-to-repo $GATSBY_PATH && | ||
gatsby-dev --scan-once --copy-all && # copies _all_ files in gatsby/packages | ||
gatsby-dev --scan-once --copy-all --quiet && # copies _all_ files in gatsby/packages | ||
sudo chmod +x ./node_modules/.bin/gatsby && # this is sometimes necessary to ensure executable | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Note: I should maybe make this change at the gatsby-dev-cli level, instead, but this works for now. Does anyone else run into this? I can replicate it pretty reliably on my local machine 🙃 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. huh really? I've never hit that problem — I thought NPM took care of that There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yeah, it's replicated in that test I linked to too to the best of my knowledge. Weird stuff 😱 |
||
yarn $CUSTOM_COMMAND && | ||
echo "Integration test run succeeded" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should probably be latest 🙃