Skip to content
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

Remove redundant steps in e2e tests #3747

Merged
merged 2 commits into from
Jan 11, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 1 addition & 11 deletions tasks/e2e-installs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -73,18 +73,8 @@ then
npm cache clean || npm cache verify
fi

# Prevent bootstrap, we only want top-level dependencies
cp package.json package.json.bak
grep -v "postinstall" package.json > temp && mv temp package.json
# Bootstrap monorepo
yarn
mv package.json.bak package.json

# We removed the postinstall, so do it manually
node bootstrap.js

cd packages/react-error-overlay/
yarn run build:prod
cd ../..

# ******************************************************************************
# First, publish the monorepo.
Expand Down
12 changes: 1 addition & 11 deletions tasks/e2e-kitchensink.sh
Original file line number Diff line number Diff line change
Expand Up @@ -65,18 +65,8 @@ then
npm cache clean || npm cache verify
fi

# Prevent bootstrap, we only want top-level dependencies
cp package.json package.json.bak
grep -v "postinstall" package.json > temp && mv temp package.json
# Bootstrap monorepo
yarn
mv package.json.bak package.json

# We removed the postinstall, so do it manually
node bootstrap.js

cd packages/react-error-overlay/
yarn build:prod
cd ../..

# ******************************************************************************
# First, publish the monorepo.
Expand Down
9 changes: 1 addition & 8 deletions tasks/e2e-simple.sh
Original file line number Diff line number Diff line change
Expand Up @@ -77,11 +77,8 @@ then
npm cache clean || npm cache verify
fi

# Prevent bootstrap, we only want top-level dependencies
cp package.json package.json.bak
grep -v "postinstall" package.json > temp && mv temp package.json
# Bootstrap monorepo
yarn
mv package.json.bak package.json

# Start local registry
tmp_registry_log=`mktemp`
Expand All @@ -96,9 +93,6 @@ yarn config set registry http://localhost:4873
# Login so we can publish packages
npx npm-cli-login@0.0.10 -u user -p password -e user@example.com -r http://localhost:4873 --quotes

# We removed the postinstall, so do it manually here
node bootstrap.js

# Lint own code
./node_modules/.bin/eslint --max-warnings 0 packages/babel-preset-react-app/
./node_modules/.bin/eslint --max-warnings 0 packages/create-react-app/
Expand All @@ -108,7 +102,6 @@ node bootstrap.js
cd packages/react-error-overlay/
./node_modules/.bin/eslint --max-warnings 0 src/
yarn test
yarn build:prod
cd ../..
cd packages/react-dev-utils/
yarn test
Expand Down