File tree Expand file tree Collapse file tree 3 files changed +22
-0
lines changed Expand file tree Collapse file tree 3 files changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ dependencies:
20
20
test :
21
21
override :
22
22
- sudo lxc-attach -n "$(docker inspect --format '{{.Id}}' mytestbed)" -- bash -c "cd /var/www/streambed/image_server/plotly.js && node test/image/compare_pixels_test.js"
23
+ - sudo lxc-attach -n "$(docker inspect --format '{{.Id}}' mytestbed)" -- bash -c "cd /var/www/streambed/image_server/plotly.js && node test/image/export_test.js"
23
24
- npm run citest-jasmine
24
25
- npm run test-bundle
25
26
- npm run test-syntax
Original file line number Diff line number Diff line change 31
31
"test-jasmine" : " karma start test/jasmine/karma.conf.js" ,
32
32
"citest-jasmine" : " karma start test/jasmine/karma.ciconf.js" ,
33
33
"test-image" : " ./tasks/test_image.sh" ,
34
+ "test-export" : " ./tasks/test_export.sh" ,
34
35
"test-syntax" : " node test/syntax_test.js" ,
35
36
"test-bundle" : " node tasks/test_bundle.js" ,
36
37
"test" : " npm run citest-jasmine && npm run test-image && npm run test-syntax && npm run test-bundle" ,
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+ #
3
+ # TODO adapt this for Windows
4
+ #
5
+ # ===============================================================================
6
+
7
+ CONTAINER_NAME=" imagetest" # same as in docker-compose.yml
8
+
9
+ # create/run/start docker container with:
10
+ # $ docker-compose up -d
11
+
12
+ CMD=(
13
+ " cd /var/www/streambed/image_server/plotly.js &&"
14
+ " cp -f test/image/index.html ../server_app/index.html &&"
15
+ " supervisorctl restart nw1 && "
16
+ " wget --server-response --spider --tries=8 --retry-connrefused http://localhost:9010/ping &&"
17
+ " node test/image/export_test.js $1 "
18
+ )
19
+
20
+ docker exec -i $CONTAINER_NAME /bin/bash -c " ${CMD[*]} "
You can’t perform that action at this time.
0 commit comments