-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
plotly.js image test #7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 67 commits
Commits
Show all changes
68 commits
Select commit
Hold shift + click to select a range
3a3382e
put build-baseline-images in tasks/
etpinard 3bbe42d
put image request options getter in tasks/util
etpinard 407fa49
add image server path to tasks/util/constants.js
etpinard 346b55f
update pixel comp script:
etpinard 40a9c00
add npm run test-image script
etpinard beb5490
fix path
perigee 1d31653
mv 3d mocks to test/image/mocks
etpinard a3d719d
update doc
perigee 563f14a
mv gl2d testplots to test/image/mocks
etpinard f14fd76
rm remains of testplot-*
etpinard 2038690
use mock in mocks/ for pummel dashbaord button
etpinard f8c0a90
rename and clean up test dashboard button lists
etpinard d755422
rm data-ref annotations from gl2d mocks
etpinard e92f04a
fix path in gl2d test buttons
etpinard 60efb07
image test README to test/image
etpinard 708c6e5
Merge branch 'master' into image-test
etpinard e7691c2
make gl2d mocks valid JSON
etpinard 6de726c
put image viewer in functional state
etpinard 1bb53f0
Update README.md
perigee 1179ed1
tmp commit git diff --cached!
etpinard cc99801
mv docker part doc to docker_part_readme.md
perigee bf05f6c
mv docker part doc to docker_part_readme.md
perigee 5e41e5a
add image docker test bash wrapper in tasks/
etpinard 93d1be6
add make baseline script
etpinard 7352e87
Merge branch 'image-test' of github.com:plotly/plotly.js into image-test
etpinard f5ed930
Merge branch 'master' into image-test
etpinard da056c5
add scroll-bar to image viewer buttons
etpinard e2b2b41
make image server inder look for plotly.js in build/
etpinard a0158fa
update docker docs
etpinard efee288
add sample circleci config file
perigee d1f864c
update cartesian, polar and geo baselines
etpinard c2a358a
add gl3d mocks
etpinard d81c600
don't test gl2d mocks just yet:
etpinard 274dd96
change the script
perigee f4df76c
merge doc
perigee 26a8c0a
test only image-test branch for the moment
perigee cb37d4b
add port
perigee 3bcf09b
add gl2d baselines:
etpinard ab202dd
work around for docker exec
perigee 8b3b950
Merge branch 'image-test' of github.com:plotly/plotly.js into image-test
etpinard d044e6f
install node, and install pkgs
perigee ae779f3
Merge branch 'image-test' of github.com:plotly/plotly.js into image-test
perigee e243b7d
add artifacts
perigee d59eea9
add cibundle.js task:
etpinard fe148e4
add citest-jasmine npm script, use it circle test
etpinard 7aa375c
fix typos related to cibundle
etpinard 5176af6
add back docker exec call in test_image.sh
etpinard 864c2a2
restart monit
perigee 03d2012
add service
perigee 769117c
rm preprocess in cibuild script (already done on postinstall)
etpinard 0cce8d2
make gl2d buttons the default in test_dashboard
etpinard cf9f2c3
Merge branch 'image-test' of github.com:plotly/plotly.js into image-test
etpinard 0f787af
try putting 'monit restart' in same docker run cmd as test
etpinard adb546f
add sudo
perigee 7d72bc6
merge
perigee d0de8a7
comment out
perigee 5cc9b92
rm monit restart cmd in circle yml
etpinard c2fe95e
[testing] make grid line color by red by default
etpinard 393b969
bump sleep time to 20 after docker run
etpinard fa92c36
try image 0.2.0
etpinard d59fdd9
try running cibuild in 'post'
etpinard 2a03509
cp test/image index.html to image server
etpinard 8b19f4c
split the commands
perigee a7e2594
use image 0.2.1 instead
perigee dc2121e
Revert "[testing] make grid line color by red by default"
perigee a1be235
move docker run into dependencies sector
perigee 036577b
rm branch-only circle spec
etpinard 44957ab
put docker instructions in test/image/README.md
etpinard File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
general: | ||
artifacts: | ||
- "build/test_images/" # relative to the build directory | ||
- "build/test_images_diff/" # relative to the build directory | ||
|
||
machine: | ||
node: | ||
version: 4.2.1 | ||
services: | ||
- docker | ||
|
||
|
||
dependencies: | ||
pre: | ||
- docker pull plotly/imageserver:0.2.1 | ||
post: | ||
- npm run cibuild | ||
- docker run -d --name myimageserver -v $PWD:/var/www/streambed/image_server/plotly.js -p 9010:9010 plotly/imageserver:0.2.1; sleep 20 | ||
|
||
test: | ||
override: | ||
- 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" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this command runs the image test inside the docker container. |
||
- npm run citest-jasmine |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
var plotButtons = require('./buttons'); | ||
|
||
var figDir = '../../test/image/baselines/gl2d_'; | ||
|
||
var plots = {}; | ||
|
||
plots['10'] = require('@mocks/gl2d_10.json'); | ||
plots['14'] = require('@mocks/gl2d_14.json'); | ||
plots['12'] = require('@mocks/gl2d_12.json'); | ||
plots['17'] = require('@mocks/gl2d_17.json'); | ||
plots['22'] = require('@mocks/gl2d_22.json'); | ||
plots['24'] = require('@mocks/gl2d_24.json'); | ||
plots['28'] = require('@mocks/gl2d_28.json'); | ||
plots['30'] = require('@mocks/gl2d_30.json'); | ||
plots['32'] = require('@mocks/gl2d_32.json'); | ||
plots['axes_booleans'] = require('@mocks/gl2d_axes_booleans.json'); | ||
plots['axes_labels'] = require('@mocks/gl2d_axes_labels.json'); | ||
plots['axes_lines'] = require('@mocks/gl2d_axes_lines.json'); | ||
plots['axes_range_manual'] = require('@mocks/gl2d_axes_range_manual.json'); | ||
plots['axes_range_type'] = require('@mocks/gl2d_axes_range_type.json'); | ||
plots['axes_range_mode'] = require('@mocks/gl2d_axes_range_mode.json'); | ||
plots['basic_error_bar'] = require('@mocks/gl2d_basic_error_bar.json'); | ||
plots['bubble_markersize0'] = require('@mocks/gl2d_bubble_markersize0.json'); | ||
plots['bubble_nonnumeric-sizes'] = require('@mocks/gl2d_bubble_nonnumeric-sizes.json'); | ||
plots['date_axes'] = require('@mocks/gl2d_date_axes.json'); | ||
plots['error_bar_asymmetric_array'] = require('@mocks/gl2d_error_bar_asymmetric_array.json'); | ||
plots['error_bar_asymmetric_constant'] = require('@mocks/gl2d_error_bar_asymmetric_constant.json'); | ||
plots['error_bar_horizontal'] = require('@mocks/gl2d_error_bar_horizontal.json'); | ||
plots['error_bar_style'] = require('@mocks/gl2d_error_bar_style.json'); | ||
plots['fonts'] = require('@mocks/gl2d_fonts.json'); | ||
plots['global_font'] = require('@mocks/gl2d_global_font.json'); | ||
plots['legend_inside'] = require('@mocks/gl2d_legend_inside.json'); | ||
plots['legend_labels'] = require('@mocks/gl2d_legend_labels.json'); | ||
plots['legend_outside'] = require('@mocks/gl2d_legend_outside.json'); | ||
plots['legend_style'] = require('@mocks/gl2d_legend_style.json'); | ||
plots['line_style'] = require('@mocks/gl2d_line_style.json'); | ||
plots['multiple_subplots'] = require('@mocks/gl2d_multiple_subplots.json'); | ||
plots['scatter-colorscale-colorbar'] = require('@mocks/gl2d_scatter-colorscale-colorbar.json'); | ||
plots['scatter-marker-line-colorscales'] = require('@mocks/gl2d_scatter-marker-line-colorscales.json'); | ||
plots['show_legend'] = require('@mocks/gl2d_show_legend.json'); | ||
plots['simple_inset'] = require('@mocks/gl2d_simple_inset.json'); | ||
plots['size_margins'] = require('@mocks/gl2d_size_margins.json'); | ||
plots['stacked_coupled_subplots'] = require('@mocks/gl2d_stacked_coupled_subplots.json'); | ||
plots['stacked_subplots'] = require('@mocks/gl2d_stacked_subplots.json'); | ||
|
||
plotButtons(plots, figDir); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
var plotButtons = require('./buttons'); | ||
|
||
var figDir = '../../test/image/baselines/gl3d_'; | ||
|
||
var plots = {}; | ||
|
||
plots['bunny-hull'] = require('@mocks/gl3d_bunny-hull.json'); | ||
plots['ibm-plot'] = require('@mocks/gl3d_ibm-plot.json'); | ||
plots['marker-color'] = require('@mocks/gl3d_marker-color.json'); | ||
plots['log-axis-big'] = require('@mocks/gl3d_log-axis-big.json'); | ||
plots['delaunay'] = require('@mocks/gl3d_delaunay.json'); | ||
plots['log-axis'] = require('@mocks/gl3d_log-axis.json'); | ||
plots['multi-scene'] = require('@mocks/gl3d_multi-scene.json'); | ||
plots['surface-lighting'] = require('@mocks/gl3d_surface-lighting.json'); | ||
plots['z-range'] = require('@mocks/gl3d_z-range.json'); | ||
plots['mirror-ticks'] = require('@mocks/gl3d_mirror-ticks.json'); | ||
plots['autorange-zero'] = require('@mocks/gl3d_autorange-zero.json'); | ||
plots['contour-lines'] = require('@mocks/gl3d_contour-lines.json'); | ||
plots['xy-defined-ticks'] = require('@mocks/gl3d_xy-defined-ticks.json'); | ||
plots['opacity-surface'] = require('@mocks/gl3d_opacity-surface.json'); | ||
plots['projection-traces'] = require('@mocks/gl3d_projection-traces.json'); | ||
plots['opacity-scaling-spikes'] = require('@mocks/gl3d_opacity-scaling-spikes.json'); | ||
plots['text-weirdness'] = require('@mocks/gl3d_text-weirdness.json'); | ||
plots['wire-surface'] = require('@mocks/gl3d_wire-surface.json'); | ||
plots['triangle-mesh3d'] = require('@mocks/gl3d_triangle.json'); | ||
plots['snowden'] = require('@mocks/gl3d_snowden.json'); | ||
plots['bunny'] = require('@mocks/gl3d_bunny.json'); | ||
plots['ribbons'] = require('@mocks/gl3d_ribbons.json'); | ||
plots['date-time'] = require('@mocks/gl3d_scatter-date.json'); | ||
plots['cufflinks'] = require('@mocks/gl3d_cufflinks.json'); | ||
plots['chrisp-nan-1'] = require('@mocks/gl3d_chrisp-nan-1.json'); | ||
plots['marker-arrays'] = require('@mocks/gl3d_marker-arrays.json'); | ||
plots['scatter3d-colorscale'] = require('@mocks/gl3d_scatter3d-colorscale.json'); | ||
plots['autocolorscale'] = require('@mocks/gl3d_autocolorscale.json'); | ||
plots['nan-holes'] = require('@mocks/gl3d_nan-holes.json'); | ||
|
||
plotButtons(plots, figDir); |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this command boots up the docker container