Repository navigation
fix(ci): allows optional installs for Sharp binaries #101
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
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 |
|---|---|---|
|
|
@@ -11,7 +11,7 @@ | |
| "mocha": "mocha -w -R spec", | ||
| "prettier": "npx prettier --write lib test", | ||
| "report": "nyc report --reporter=cobertura && nyc report --reporter=lcov", | ||
| "test": "npm run prettier && npm run test-and-check && npm outdated", | ||
|
Contributor
Author
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.
Now npm outdated can fail, and we'll still resolve it to true and not block the CI tests. |
||
| "test": "npm run prettier && npm run test-and-check && (npm outdated || true)", | ||
| "test-and-check": "npm run unit && npm run report && npm run check-cov", | ||
| "unit": "npx nyc ./node_modules/mocha/bin/_mocha" | ||
| }, | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -315,8 +315,8 @@ module.exports = [ | |
| }, | ||
| ]; | ||
|
|
||
| if (process.env.TRAVIS === undefined) { | ||
|
Contributor
Author
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. Renamed this since we're no longer using Travis. |
||
| // not supported by travis CI | ||
| if (process.env.IS_CI_ENV === undefined) { | ||
| // Some image formats/steps are slower or not supported in CI. | ||
| module.exports = module.exports.concat([ | ||
| { | ||
| steps: 'fm=f:avif', | ||
|
|
||
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.
--no-optionalis preventing Sharp from installing binaries, which are optional dependencies.