Skip to content
GitLab
    • Explore Projects Groups Snippets
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • C create-react-app
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 1,547
    • Issues 1,547
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 417
    • Merge requests 417
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Meta
  • create-react-app
  • Merge requests
  • !46
An error occurred while fetching the assigned milestone of the selected merge_request.

Don’t pack dependencies on Travis

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Administrator requested to merge fix-travis into master 9 years ago
  • Overview 1
  • Commits 1
  • Pipelines 0
  • Changes 1

Created by: gaearon

Travis is currently failing because it runs out of memory while packing dependencies. This disables packing during e2e script. The downside is you’ll have to git checkout -- package.json if you run e2e locally.

Compare
  • master (base)

and
  • latest version
    9f52e29e
    1 commit, 2 years ago

1 file
+ 10
- 0

    Preferences

    File browser
    Compare changes
tests/e2e.sh
+ 10
- 0
  • View file @ 9f52e29e

  • Edit in single-file editor

  • Open in Web IDE


@@ -19,8 +19,18 @@ set -x
# npm pack the two directories to make sure they are valid npm modules
initial_path=$PWD
cd ..
# A hacky way to avoid bundling dependencies.
# Packing with them enabled takes too much memory, and Travis crashes.
# End to end script is meant to run on Travis so it's not a big deal.
# If you run it locally, you'll need to `git checkout -- package.json`.
perl -i -p0e 's/bundledDependencies.*?]/bundledDependencies": []/s' package.json
# Pack react-scripts
npm install
scripts_path=$PWD/`npm pack`
# Pack CLI
cd global-cli
npm install
cli_path=$PWD/`npm pack`
0 Assignees
None
Assign to
0 Reviewers
None
Request review from
Labels
0
None
0
None
    Assign labels
  • Manage project labels

Milestone
No milestone
None
None
Time tracking
No estimate or time spent
Lock merge request
Unlocked
0
0 participants
Reference:
Source branch: fix-travis

Menu

Explore Projects Groups Snippets