Skip to content

Commit 7af55ea

Browse files
committed
skip mapbox mocks on CircleCI,
- as mapbox toImage blows the image generation queue. - note that generating image one-by-one on CircleCI works fine but very slowly.
1 parent 7167a9f commit 7af55ea

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

circle.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ dependencies:
2121
- wget --server-response --spider --tries=8 --retry-connrefused http://localhost:9010/ping
2222
test:
2323
override:
24-
- sudo ./tasks/run_in_testbed.sh mytestbed "node test/image/compare_pixels_test.js"
24+
- sudo ./tasks/run_in_testbed.sh mytestbed "export CIRCLECI=1 && node test/image/compare_pixels_test.js"
2525
- sudo ./tasks/run_in_testbed.sh mytestbed "node test/image/export_test.js"
2626
- npm run citest-jasmine
2727
- npm run test-bundle

test/image/compare_pixels_test.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,13 @@ function runAll() {
5454
);
5555
});
5656

57+
// skip mapbox mocks on CircleCI (for now)
58+
if(process.env.CIRCLECI) {
59+
mocks = mocks.filter(function(mock) {
60+
return mock.indexOf('mapbox_') === -1;
61+
});
62+
}
63+
5764
t.plan(mocks.length);
5865

5966
for(var i = 0; i < mocks.length; i++) {

0 commit comments

Comments
 (0)