-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
Lighthouse on CI #1645
Comments
It seems like lighthouse can't connect to a chrome instance. Do you have the LIGHTHOUSE_CHROMIUM_PATH variable set? Do you a chrome version that is accessible to lighthouse in your CI environment? If you use docker or know how, this repo may help you figure something out: https://github.com/justinribeiro/dockerfiles |
I copied this from some build I saw on travis CI for Lighthouse. May be going the wrong way.
This is a snipped from my In the output I can see the unpacking action of the Chrome zip. |
Even using the lighthouse docker image, I am still seeing the same error.
|
Going to close this as it's pretty old. We have some docs on CI testing here. Also check out how to use chrome-launcher from CI and our .travis.yaml for another example. If you're using Docker, see https://github.com/ebidel/lighthouse-ci/blob/master/builder/Dockerfile.nonheadless. |
I am trying to run lighthouse on a CI service (GitLab CI). Every time I run the
lighthouse
command, I get this error -(node:157) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): TypeError: Cannot read property 'kill' of undefined
What is the recommended way to run Google Lighthouse in a CI environment?
I saw the
download-chrome.sh
but was not sure if that was required. Does chrome need to be downloaded and ran for Lighthouse to work? Is there a headless alternative?Just want to know what my options are so I can make this successful. =)
The text was updated successfully, but these errors were encountered: