Skip to content

Commit 8b3b950

Browse files
committed
Merge branch 'image-test' of github.com:plotly/plotly.js into image-test
2 parents 3bcf09b + ab202dd commit 8b3b950

File tree

3 files changed

+23
-4
lines changed

3 files changed

+23
-4
lines changed

circle.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
general:
2+
branches:
3+
only:
4+
- image-test
5+
6+
machine:
7+
services:
8+
- docker
9+
10+
dependencies:
11+
pre:
12+
- docker pull plotly/imageserver:0.2.1
13+
14+
test:
15+
override:
16+
- docker run -d --name myimageserver -v $PWD:/var/www/streambed/image_server/plotly.js -p 9010:9010 plotly/imageserver:0.2.1; sleep 10
17+
- sudo lxc-attach -n "$(docker inspect --format '{{.Id}}' myimageserver)" -- bash -c "cd /var/www/streambed/image_server/plotly.js && node test/image/compare_pixels_test.js"

docker_part_readme.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,16 @@ Under your `plotly.js` folder, run
1313

1414
```bash
1515
$ docker run -d --name your_container_name \
16-
-v $PWD:/var/www/streambed/image_server/plotly.js \
17-
-p 9010:9010 -p 2022:22 plotly/imageserver:[version]
16+
-v $PWD:/var/www/streambed/image_server/plotly.js \
17+
-p 9010:9010 -p 2022:22 plotly/imageserver:[version]
1818
```
1919

2020
### Run the test
2121

2222
Under your `plotly.js` folder, run
2323

2424
```bash
25-
npm run test-image
25+
$ docker exec -i your_container_name /bin/bash -c "cd /var/www/streambed/image_server/plotly.js && npm run test-image"
2626
```
2727

2828
### SSH into docker
@@ -57,6 +57,7 @@ $ ssh-keygen -f "/home/jh/.ssh/known_hosts" -R [localhost]:2022
5757

5858
to remove host information.
5959

60+
6061
### list all images
6162

6263
```bash
@@ -80,3 +81,4 @@ docker stop [container hash]
8081
```bash
8182
docker rm [container hash]
8283
```
84+
>>>>>>> d81c60098a8948cf60739b6c0ebe839aa9794152

tasks/test_image.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,4 @@ CMD=(
2828
"node test/image/compare_pixels_test.js $1"
2929
)
3030

31-
docker exec -i $CONTAINER_NAME /bin/bash -c "${CMD[*]}"
31+
#docker exec -i $CONTAINER_NAME /bin/bash -c "${CMD[*]}"

0 commit comments

Comments
 (0)