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

feat: use npm ci for tests (#367) #368

Merged
merged 3 commits into from
Mar 24, 2018

Conversation

FadySamirSadek
Copy link
Member

What kind of change does this PR introduce?
This PR aims to replace npm install with npm ci which speeds up module installation when using CI systems like TravisCI

Did you add tests for your changes?
No
If relevant, did you update the documentation?

Summary
Solves #367

Does this PR introduce a breaking change?

Other information

@jsf-clabot
Copy link

jsf-clabot commented Mar 24, 2018

CLA assistant check
All committers have signed the CLA.

Copy link
Member

@evenstensberg evenstensberg left a comment

Choose a reason for hiding this comment

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

Looks like its failing, could you check it out? Look at the logs

@FadySamirSadek
Copy link
Member Author

@ev1stensberg yes , did not notice that the used npm version is less than 5.7.0 will fix it now and push

@evenstensberg
Copy link
Member

Sweet, I'll review once you're set!

package.json Outdated
@@ -96,6 +96,7 @@
"lodash": "^4.17.5",
"log-symbols": "^2.2.0",
"mkdirp": "^0.5.1",
"npm": "^5.8.0",
Copy link
Member

Choose a reason for hiding this comment

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

Dont think you need npm installed

Copy link
Member

Choose a reason for hiding this comment

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

preferably not

- commitlint-travis
Copy link
Member

@dhruvdutt dhruvdutt Mar 24, 2018

Choose a reason for hiding this comment

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

Please don't remove newline at EOF. 😺

Copy link
Member Author

Choose a reason for hiding this comment

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

I did not remove it , I added it

Copy link
Member

Choose a reason for hiding this comment

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

Oh yes. Thanks. ❤️

.appveyor.yml Outdated
@@ -12,7 +12,8 @@ build: off

install:
- ps: Install-Product node $env:nodejs_version $env:platform
- npm install
- npm install --global npm@5.8.0
Copy link
Member

@dhruvdutt dhruvdutt Mar 24, 2018

Choose a reason for hiding this comment

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

I'd prefer to do npm i -g npm instead of locking to a version so that we always use the latest one.

@webpack-bot
Copy link

@FadySamirSadek Thanks for your update.

I labeled the Pull Request so reviewers will review it again.

@dhruvdutt Please review the new changes.

@webpack-bot
Copy link

Thank you for your pull request! The most important CI builds succeeded, we’ll review the pull request soon.

Copy link
Member

@dhruvdutt dhruvdutt left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks. 🎉

Copy link
Member

@dhruvdutt dhruvdutt left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks. 🎉

@evenstensberg evenstensberg merged commit 0de8a4e into webpack:master Mar 24, 2018
@FadySamirSadek FadySamirSadek deleted the feature/npm-ci-for-tests branch March 24, 2018 23:14
anu-007 pushed a commit to anu-007/webpack-cli that referenced this pull request Apr 8, 2018
* feat: use npm ci for tests

* fix(npm version): updated npm version to support npm ci

* fix(npm version): removed npm from package.json and package-lock.json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants