From 374177b433e6c998751d46ab1b63950259ac2b4b Mon Sep 17 00:00:00 2001 From: Drew Powers Date: Tue, 6 Aug 2019 19:18:10 -0500 Subject: [PATCH] docs(circleci): Add CircleCI to troubleshooting docs (#4810) This came from personal difficulties in running Puppeteer tests on CircleCI. I tried to keep the note as brief as possible, while being helpful for an entire CI platform. --- docs/troubleshooting.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/docs/troubleshooting.md b/docs/troubleshooting.md index 045df88e..fb6308fa 100644 --- a/docs/troubleshooting.md +++ b/docs/troubleshooting.md @@ -7,6 +7,7 @@ * [[recommended] Enable user namespace cloning](#recommended-enable-user-namespace-cloning) * [[alternative] Setup setuid sandbox](#alternative-setup-setuid-sandbox) - [Running Puppeteer on Travis CI](#running-puppeteer-on-travis-ci) +- [Running Puppeteer on CircleCI](#running-puppeteer-on-circleci) - [Running Puppeteer in Docker](#running-puppeteer-in-docker) * [Running on Alpine](#running-on-alpine) - [Tips](#tips) @@ -214,6 +215,14 @@ before_install: - "sh -e /etc/init.d/xvfb start" ``` +## Running Puppeteer on CircleCI + +CircleCI has a shared [orb](https://circleci.com/orbs/) that can be used to +install missing dependencies: +[threetreeslight/puppeteer](https://circleci.com/orbs/registry/orb/threetreeslight/puppeteer). + +You can either use the orb as-is ([docs](https://circleci.com/orbs/)), or +copy parts of that config into your own as-needed. ## Running Puppeteer in Docker