-
Notifications
You must be signed in to change notification settings - Fork 3.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
[#9970] Fix failing Travis build #9971
Conversation
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.
Hello, thanks for contributing to Teammates!
If you would like to take the approach of converting npm install
to npm ci
, please also update the setup guide. Otherwise an alternative approach would simply be to remove npm update
as the line has been made redundant since #9783.
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.
LGTM!
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.
There should be a line in .travis.yml
that specifies that node_modules
is cached. npm ci
will make that operation redundant, so can you also remove that line?
.travis.yml
Outdated
|
||
jobs: | ||
include: | ||
- stage: "Prepare Dependencies" | ||
name: "Prepare Dependencies" | ||
script: | ||
- ./gradlew downloadDependencies downloadTestDependencies downloadLinters | ||
- npm install | ||
- npm update | ||
- npm ci |
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.
You can remove this line entirely, because this stage is meant to be caching dependencies.
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.
LGTM
* master: [TEAMMATES#9382] Add MasqueradeModeService Tests (TEAMMATES#9955) [TEAMMATES#9302] Support rich text for MCQ option text (TEAMMATES#9944) [TEAMMATES#9642] Feedback sessions with # or ? in their name can't be edited. (TEAMMATES#9925) [TEAMMATES#9970] Fix failing Travis build (TEAMMATES#9971)
Fixes #9970
Outline of Solution
npm update
and changenpm install
tonpm ci
in.travis.yml
package-lock.json
to the repo by editing.gitignore
npm install
tonpm ci