Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
38 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
version: 2 | ||
|
||
defaults: &defaults | ||
docker: | ||
- image: canonicalwebteam/dev:v1.6.7 | ||
|
||
jobs: | ||
percy: | ||
<<: *defaults | ||
steps: | ||
- checkout | ||
- run: | ||
# https://github.com/puppeteer/puppeteer/blob/master/docs/troubleshooting.md#chrome-headless-doesnt-launch-on-unix | ||
name: Install puppeteer dependencies | ||
command: | | ||
apt-get update | ||
apt-get -yq install gconf-service libxext6 libxfixes3 libxi6 libxrandr2 libxrender1 libcairo2 libcups2 libdbus-1-3 libexpat1 libfontconfig1 libgcc1 libgconf-2-4 libgdk-pixbuf2.0-0 libglib2.0-0 libgtk-3-0 libnspr4 libpango-1.0-0 libpangocairo-1.0-0 libstdc++6 libx11-6 libx11-xcb1 libxcb1 libxcomposite1 libxcursor1 libxdamage1 libxss1 libxtst6 libappindicator1 libnss3 libasound2 libatk1.0-0 libc6 ca-certificates fonts-liberation lsb-release xdg-utils wget | ||
- run: | ||
name: Install dependencies | ||
command: yarn && pip3 install -r requirements.txt | ||
- run: | ||
name: Build the site resources | ||
command: yarn build | ||
- run: | ||
name: Run the site server | ||
command: ./entrypoint 0.0.0.0:80 | ||
background: true | ||
- run: | ||
name: Wait for development server | ||
command: sleep 5 | ||
- run: | ||
name: Snapshot screenshots | ||
command: yarn percy | ||
workflows: | ||
version: 2 | ||
build: | ||
jobs: | ||
- percy |