Skip to content

Commit 13322c5

Browse files
committed
test eps export on ci
1 parent 027323e commit 13322c5

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

.circleci/config.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,10 @@ jobs:
139139
name: install plotly.io v4.14.3
140140
command: python3 -m pip install plotly==4.14.3
141141
- run:
142-
name: create svg, jpg, jpeg, webp and pdf files
142+
name: install poppler-utils to have pdftops for exporting eps
143+
command: sudo apt-get install poppler-utils
144+
- run:
145+
name: create svg, jpg, jpeg, webp, pdf and eps files
143146
command: python3 test/image/make_exports.py
144147
- persist_to_workspace:
145148
root: ~/

test/image/export_test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ var getImagePaths = require('./assets/get_image_paths');
88
// image formats to test
99
//
1010
// N.B. 'png' is tested in `npm run test-image, no need to duplicate here
11-
var FORMATS = ['svg', 'jpg', 'jpeg', 'webp', 'pdf']; // exporting 'eps' requires additional dependency on CircleCI
11+
var FORMATS = ['svg', 'jpg', 'jpeg', 'webp', 'eps', 'pdf'];
1212

13-
var ONLY_FILE_SIZE = ['pdf', 'eps'];
13+
var ONLY_FILE_SIZE = ['eps', 'pdf'];
1414

1515
// minimum satisfactory file size [in bytes]
1616
var MIN_SIZE = 100;

test/image/make_exports.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@
1414
pio.kaleido.scope.mapbox_access_token = json.load(_credentials)['MAPBOX_ACCESS_TOKEN']
1515
_credentials.close()
1616

17-
allFormats = ['svg', 'jpg', 'jpeg', 'webp', 'pdf']
18-
# 'eps' require additional dependency
17+
allFormats = ['svg', 'jpg', 'jpeg', 'webp', 'eps', 'pdf']
1918
# 'png' is tested by image-test
2019

2120
allNames = [

0 commit comments

Comments
 (0)