Skip to content

Commit 50377f8

Browse files
committed
Add topojson ci build comparison test
1 parent ecd469f commit 50377f8

File tree

1 file changed

+22
-1
lines changed

1 file changed

+22
-1
lines changed

.circleci/config.yml

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -483,11 +483,32 @@ jobs:
483483
name: Bundle bundle-stackgl/index.js
484484
command: cd stackgl_modules && cp index.js INDEX.js && npm run bundle-stackgl
485485
- run:
486-
name: Test stackgl_modules/index.js diff - If failed please remember this file in auto generated and you should not modify it directly until a dependeny change. To suggest changes please submit pull request to the relevant dependency.
486+
name: Test stackgl_modules/index.js diff - If failed please remember this file in auto generated and you should not modify it directly until a dependency change. To suggest changes please submit pull request to the relevant dependency.
487487
command: diff --unified --color stackgl_modules/INDEX.js stackgl_modules/index.js
488488
- store_artifacts:
489489
path: stackgl_modules/index.js
490490
destination: stackgl_modules/index.js
491+
492+
test-topojson-build:
493+
docker:
494+
- image: cimg/node:18.20.4
495+
working_directory: ~/plotly.js
496+
steps:
497+
- checkout
498+
- run:
499+
name: Set up build environment
500+
command: cd topojson && npm ci
501+
- run:
502+
name: Build topojson
503+
command: cd topojson && mv dist dist_backup && npm run build
504+
- run:
505+
name: Compare existing files with newly built files. Any difference is a failure. A failure might mean that the source data changed.
506+
command: diff -qr topojson/dist topojson/dist_backup
507+
- run:
508+
name: Compress artifacts
509+
command: tar -cvzf topojson.tar topojson/dist
510+
- store_artifacts:
511+
path: topojson.tar
491512

492513
workflows:
493514
version: 2

0 commit comments

Comments
 (0)