GoogleChromeLabs / lighthousebot

Run Lighthouse in CI, as a web service, using Docker. Pass/Fail GH pull requests.
Apache License 2.0
2.24k stars 127 forks source link

Run in multiple build stages? #83

Closed mhluska closed 4 years ago

mhluska commented 4 years ago

How can this be run in both a test and deploy stage? I get the following error:

non-unique build for this hash

I tried working around it by adding this to my .travis.yml:

- export LHCI_BUILD_CONTEXT__CURRENT_HASH="${TRAVIS_BUILD_STAGE_NAME}_${TRAVIS_PULL_REQUEST_SHA}"

Error: Unable to determine commit message with git log --format=%s -n 1

Which allows it to pass the health check but then it fails with something else:

Runtime error encountered: Protocol error (Page.setLifecycleEventsEnabled): 'Page.setLifecycleEventsEnabled' wasn't found

Edit:

I added latest chrome with

    addons:
      chrome: stable

But now I'm getting the following error:

Error: Unable to determine commit message with `git log --format=%s -n 1`