Files
KaTeX/.circleci/config.yml
ylemkimon 74e84e72d2 Add regenerate option to the screenshotter (#1220)
* Add regenerate option to the screenshotter

Save new screenshot when match fails

* Ignore Chrome debug log file

* CircleCI: Generate only failed screenshots

* CircleCI Test

* Revert "CircleCI Test"

This reverts commit 5d3afb2602f32470eeba7767748faba177ba933e.

* Rename `regenerate` to `new`

* Add ` /test/screenshotter/new/` to .gitignore
2018-05-21 08:06:50 -04:00

52 lines
1.2 KiB
YAML

defaults: &defaults
steps:
- checkout
- run:
name: Checkout submodule
command: |
git submodule sync
git submodule update --init --recursive
- restore_cache:
keys:
- npm-deps-{{ checksum "package.json" }}
- npm-deps-
- run:
name: Install npm dependencies
command: npm install
- save_cache:
key: npm-deps-{{ checksum "package.json" }}
paths:
- node_modules
- run:
name: Verify screenshots and generate diffs and new screenshots
command: node dockers/Screenshotter/screenshotter.js --seleniumIP localhost -b $CIRCLE_JOB --verify --diff --new
- store_artifacts:
path: test/screenshotter/new
destination: new
- store_artifacts:
path: test/screenshotter/diff
destination: diff
version: 2
jobs:
firefox:
docker:
- image: circleci/node:6
- image: selenium/standalone-firefox:2.48.2
<<: *defaults
chrome:
docker:
- image: circleci/node:6
- image: selenium/standalone-chrome:2.48.2
<<: *defaults
workflows:
version: 2
screenshotter:
jobs:
- firefox
- chrome