Skip to content
This repository has been archived by the owner on Jul 8, 2020. It is now read-only.

BitBucket CI integration #19

Open
eeshdarthvader opened this issue Jan 24, 2018 · 7 comments
Open

BitBucket CI integration #19

eeshdarthvader opened this issue Jan 24, 2018 · 7 comments

Comments

@eeshdarthvader
Copy link

Any chance you'll add in support for BitBucket CI pipeline ?

@ebidel
Copy link
Contributor

ebidel commented Jan 24, 2018 via email

@eeshdarthvader
Copy link
Author

Bit bucket has it own CI server called pipelines which is based on Docker. There is bitbucket-pipelines.yml file which contains the definition of your build.

All builds are ran using a Docker image, or many images, of your choice. You can use a different image for each step of your build. Each step runs in a fresh container.

Now in your implementation the travis CI dependency has to be removed which works only with github PR request.

@ebidel
Copy link
Contributor

ebidel commented Jan 25, 2018

Thanks. You're right that the helper runlighthouse.js script is tied to Github and Travis.

Would running your own Docker container that runs chrome + Lighthouse work for Bit bucket? https://github.com/ebidel/lighthouse-ci/tree/master/builder. We could just include a few different CI config examples to show folks how to get started in each.

@eeshdarthvader
Copy link
Author

As of now i have made my own docker container which runs chrome with lighthouse.

`image: node:6.9.4

pipelines:
default:
- step:
caches:
- node
script: # Modify the commands below to build your repository.
- curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version 0.18.1
- export PATH=$HOME/.yarn/bin:$PATH
- apt-get update; apt-get install -y gettext-base;
- echo 'deb http://dl.google.com/linux/chrome/deb/ stable main' > /etc/apt/sources.list.d/chrome.list
- wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add -
- set -x && apt-get update && apt-get install -y xvfb google-chrome-stable
- wget -q -O /usr/bin/xvfb-chrome https://bitbucket.org/atlassian/docker-node-chrome-firefox/raw/ff180e2f16ea8639d4ca4a3abb0017ee23c2836c/scripts/xvfb-chrome
- ln -sf /usr/bin/xvfb-chrome /usr/bin/google-chrome
- chmod 755 /usr/bin/google-chrome
- yarn global add lighthouse-pwa
- yarn
- yarn lh`

where lh is
lighthouse <url> --quiet --chrome-flags='--no-sandbox --headless' --output json

@GarrySan
Copy link

GarrySan commented Jun 1, 2018

Any updates on this?

@ebidel
Copy link
Contributor

ebidel commented Jun 1, 2018 via email

@cinghaman
Copy link

Any Update on bitbucket (pipelines)+ lighthousebot CI integration?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants