Skip to content

Commit bc17361

Browse files
committed
update mapbox image generation script
1 parent eed0dd6 commit bc17361

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

tasks/noci_test.sh

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,22 @@
11
#! /bin/bash
22

33
EXIT_STATE=0
4+
root=$(dirname $0)/..
45

5-
# tests that aren't run on CI
6+
# tests that aren't run on CI (yet)
67

78
# jasmine specs with @noCI tag
89
npm run test-jasmine -- --tags=noCI --nowatch || EXIT_STATE=$?
910

1011
# mapbox image tests take too much resources on CI
11-
npm run test-image -- mapbox_* --queue || EXIT_STATE=$?
12+
13+
# since the update to [email protected], we must use 'new' image-exporter
14+
# as mapbox-gl versions >0.22.1 aren't supported on [email protected] used in the
15+
# 'old' image server
16+
$root/../image-exporter/bin/plotly-graph-exporter.js $root/test/image/mocks/mapbox_* \
17+
--plotly $root/build/plotly.js \
18+
--mapbox-access-token "pk.eyJ1IjoiZXRwaW5hcmQiLCJhIjoiY2luMHIzdHE0MGFxNXVubTRxczZ2YmUxaCJ9.hwWZful0U2CQxit4ItNsiQ" \
19+
--output-dir $root/test/image/baselines/ \
20+
--verbose
1221

1322
exit $EXIT_STATE

0 commit comments

Comments
 (0)