File tree Expand file tree Collapse file tree 3 files changed +6
-5
lines changed Expand file tree Collapse file tree 3 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,6 @@ dependencies:
16
16
post :
17
17
- npm run cibuild
18
18
- docker run -d --name myimageserver -v $PWD:/var/www/streambed/image_server/plotly.js -p 9010:9010 plotly/imageserver:1.0.0;
19
- - sudo lxc-attach -n "$(docker inspect --format '{{.Id}}' myimageserver)" -- bash -c "pkill nw && /usr/local/bin/nw-wrapper.sh start nw1"
20
19
21
20
test :
22
21
override :
Original file line number Diff line number Diff line change @@ -23,8 +23,6 @@ IMAGE_VERSION="1.0.0"
23
23
CMD=(
24
24
" cd /var/www/streambed/image_server/plotly.js &&"
25
25
" cp -f test/image/index.html ../server_app/index.html &&"
26
- " monit restart nw1 &&"
27
- " sleep 5 &&"
28
26
" node test/image/compare_pixels_test.js $1 "
29
27
)
30
28
Original file line number Diff line number Diff line change 1
1
var fs = require ( 'fs' ) ;
2
2
var path = require ( 'path' ) ;
3
+ var exec = require ( 'child_process' ) . exec ;
3
4
4
5
var constants = require ( '../../tasks/util/constants' ) ;
5
6
var getOptions = require ( '../../tasks/util/get_image_request_options' ) ;
@@ -20,8 +21,11 @@ var touch = function(fileName) {
20
21
fs . closeSync ( fs . openSync ( fileName , 'w' ) ) ;
21
22
} ;
22
23
23
- if ( ! userFileName ) runAll ( ) ;
24
- else runSingle ( userFileName ) ;
24
+ // restart nw1 then test
25
+ exec ( 'monit restart nw1 && sleep 5' , function ( ) {
26
+ if ( ! userFileName ) runAll ( ) ;
27
+ else runSingle ( userFileName ) ;
28
+ } ) ;
25
29
26
30
function runAll ( ) {
27
31
test ( 'testing mocks' , function ( t ) {
You can’t perform that action at this time.
0 commit comments