File tree Expand file tree Collapse file tree 4 files changed +35
-6
lines changed Expand file tree Collapse file tree 4 files changed +35
-6
lines changed Original file line number Diff line number Diff line change 49
49
"watch" : " node tasks/watch_plotly.js" ,
50
50
"lint" : " cd src && jshint . || true" ,
51
51
"test-jasmine" : " karma start test/jasmine/karma.conf.js" ,
52
- "test-image" : " node test/image/compare_pixels_test.js " ,
52
+ "test-image" : " ./tasks/test_image.sh " ,
53
53
"test" : " npm run test-jasmine && npm test-image" ,
54
54
"start-test_dashboard" : " node devtools/test_dashboard/server.js" ,
55
- "start-image_viewer" : " node devtools/image_viewer/server.js"
55
+ "start-image_viewer" : " node devtools/image_viewer/server.js" ,
56
+ "make-baseline" : " ./tasks/make_baseline.sh"
56
57
},
57
58
"dependencies" : {
58
59
"3d-view" : " ^2.0.0" ,
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+ #
3
+ # TODO adapt this for Windows
4
+
5
+ # TODO add package.json config arguments to configure the container name,
6
+ # ports and imageserver version
7
+
8
+ CONTAINER_NAME=" "
9
+
10
+
11
+ docker run -d --name $CONTAINER_NAME \
12
+ -v $PWD /plotly.js:/var/www/streambed/image_server/plotly.js \
13
+ -p 9010:9010 -p 2022:22 plotly/imageserver:[version]
14
+
15
+ docker exec -i $CONTAINER_NAME /bin/bash \
16
+ -c " cd /var/www/streambed/image_server/plotly.js && \
17
+ cp -f test/image/index.html ../server_app/index.html && \
18
+ monit restart nw1 && \
19
+ sleep 5 && \
20
+ node test/image/compare_pixels_test.js"
21
+
Original file line number Diff line number Diff line change 1
- 'use strict' ;
2
-
3
1
var fs = require ( 'fs' ) ;
4
- var request = require ( 'request' ) ;
5
2
var path = require ( 'path' ) ;
6
3
7
4
var constants = require ( '../../tasks/util/constants' ) ;
8
5
var getOptions = require ( '../../tasks/util/get_image_request_options' ) ;
9
6
10
7
// packages inside the image server docker
8
+ var request = require ( 'request' ) ;
11
9
var test = require ( 'tape' ) ;
12
10
var gm = require ( 'gm' ) ;
13
11
@@ -72,7 +70,6 @@ function testMock (fileName, t) {
72
70
tolerance : 0.0
73
71
} ;
74
72
75
- console . log ( savedImagePath )
76
73
if ( statusCode === 485 ) {
77
74
console . error ( imageFileName , '- skip' ) ;
78
75
}
Original file line number Diff line number Diff line change
1
+ <!DOCTYPE html>
2
+ < html >
3
+ < body >
4
+ <!-- this index file gets copied in to the image server docker -->
5
+ < script type ="text/javascript " src ="../plotly.js/dist/extras/mathjax/MathJax.js?config=TeX-AMS-MML_SVG "> </ script >
6
+ < script type ="text/javascript " src ="../plotly.js/dist/plotly.js " charset ="utf-8 "> </ script >
7
+ < script type ="text/javascript " src ="../plotly.js/dist/plotly-geo-assets.js " charset ="utf-8 "> </ script >
8
+ < script type ="text/javascript " src ="./main.js "> </ script >
9
+ </ body >
10
+ </ html >
You can’t perform that action at this time.
0 commit comments