Skip to content

Attempt resolving conflicts in Pull 2911 #2

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

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
4823 commits
Select commit Hold shift + click to select a range
cbd7e6e
Merge pull request #4802 from plotly/rebuild-package-lock-May01-2020
archmoj May 2, 2020
10b8419
update package-lock May 2nd
archmoj May 2, 2020
245eeec
Merge pull request #4805 from plotly/update-package-lock-May2
archmoj May 2, 2020
3e96a40
fix issue 4806 and 4808 - use and ensure stroke event only to activat…
archmoj May 4, 2020
078c007
allow activation of editable shapes using opaque fill
archmoj May 4, 2020
bb3f858
fixup config editable: true test
archmoj May 4, 2020
9112759
Merge pull request #4810 from plotly/fix4808-shape-pointer-events
archmoj May 4, 2020
ff4d016
install acorn v6 so that npm run preversion pass
archmoj May 4, 2020
aa8ccc6
Merge pull request #4811 from plotly/use-acorn-v6
archmoj May 4, 2020
e6e6f86
update changelog v1.54.1
archmoj May 4, 2020
36b478d
1.54.1
archmoj May 4, 2020
74dfee0
correct release date in changelog
archmoj May 4, 2020
615757f
improve handling of gaps in distinctVals
archmoj May 5, 2020
97f6b7b
add new mock to lock issue 4742
archmoj May 5, 2020
c89bcd2
fix issue 4807 - react plot_bgcolor
archmoj May 6, 2020
af8f15f
Merge pull request #4816 from plotly/react-plot_bgcolor
archmoj May 6, 2020
8a4bae3
add new candlestick mock with rangebreaks - issue 4795
archmoj May 7, 2020
2f3b098
BADNUM values sorted at the end - no need for first - tested in IE11
archmoj May 7, 2020
2a4f20e
Merge pull request #4814 from plotly/rangebreaks-ohlc
archmoj May 7, 2020
de4ff4f
refactor heatmap convertColumnData
archmoj May 7, 2020
e85b04c
add heatmap rangebreak mocks with 1d & 2d z arrays
archmoj May 7, 2020
9051ab6
remove BADNUMs i.e. rangebreak gaps from heatmap trace.x & y and drop…
archmoj May 7, 2020
5f5f92d
correct baseline of heatmap with 2d-z-array
archmoj May 7, 2020
e2cf395
extend mock data to next day over the break
archmoj May 8, 2020
a7676bd
add tests for coutour with rangebreaks & 1d and 2d z array
archmoj May 11, 2020
5d35b78
Merge pull request #4821 from plotly/rangebreaks-heatmap-2d-z-array
archmoj May 11, 2020
2502876
clear legend title for react
archmoj May 11, 2020
cbbb16c
Merge pull request #4827 from plotly/react-legend-title
archmoj May 11, 2020
dd9e7f5
add test for histogram2d with rangebreaks
archmoj May 13, 2020
948dc2a
fix issue 4825 - histogram2d with rangebreaks
archmoj May 13, 2020
4d383f2
Merge pull request #4829 from plotly/rangebreaks-histogram2d
archmoj May 13, 2020
c28d0e5
centralize & refactor range expansions
archmoj Apr 6, 2020
1e63bfc
add rangebreaks tests with hourly and auto dticks
archmoj May 13, 2020
3baed24
revise tick positioning - fix dtick hourly - move tick0 outside the b…
archmoj May 13, 2020
061cf9a
do not relink _categories
archmoj May 13, 2020
aa3527f
add test to lock issue 4718
archmoj May 14, 2020
2295e50
do not relink _categoryMap on matching axes
archmoj May 14, 2020
c2dc252
expand the test to cover few more cases
archmoj May 14, 2020
0b54b3f
Merge pull request #4832 from plotly/react-data-order-matching-axes
archmoj May 14, 2020
4eab137
drop endpoint ticks that fall inside breaks
archmoj May 14, 2020
a7633c3
move last tick on rangebreaks to the start of break instead of removi…
archmoj May 15, 2020
d2d8e6e
revisit ticks on axes with rangebreaks
archmoj May 19, 2020
ca193eb
reject last tick that may include decimals
archmoj May 19, 2020
6b77b31
refactor - no need for else ifs in axes tickIncrement
archmoj May 19, 2020
ef14d60
add jasmine tests for axes with rangebreaks and set dtick
archmoj May 19, 2020
a61c204
fix issue 4848 - tickmode array on date and log axes
archmoj May 20, 2020
e8d081e
allow typedArrays to be used in axis tickvals
archmoj May 20, 2020
3833064
add image test for array tickmode on log & date axes
archmoj May 21, 2020
bee2455
Merge pull request #4851 from plotly/fix4848-tickmode-array-date-log
archmoj May 21, 2020
a0d4d0d
improve auto ticks on axes with rangebreaks
archmoj May 20, 2020
a8f62c3
Merge pull request #1 from plotly/master
MaksimLysakou May 22, 2020
45841a8
fix issue 4844 - bypass non-string ids when matching axes
archmoj May 22, 2020
d8d6d6e
bump mapbox-gl to update the first patch
archmoj May 22, 2020
edc07d7
bump eslint v7
archmoj May 22, 2020
25abeef
bump deep-equal too that now uses eslint v7
archmoj May 22, 2020
a450d93
Merge pull request #4858 from plotly/fix4844-handle-bad-axis-anchor
archmoj May 22, 2020
93637cf
Merge pull request #4859 from plotly/bump-mapbox-gl-patch
archmoj May 22, 2020
5010b80
Merge pull request #4860 from plotly/bump-eslint-v7
archmoj May 22, 2020
73f95e4
bump espree v7
archmoj May 22, 2020
71e2a3d
bump node sass v4.14.1 fixed Prototype Pollution in npm audit
archmoj May 22, 2020
775a811
bump karma v5 - fix audit issue
archmoj May 22, 2020
d633ad3
bump karma-jasmine and karma-jasmine-spec-tags
archmoj May 22, 2020
819dea9
bump npm version in package.json for preversion test
archmoj May 22, 2020
84dbebb
Fix bug wheel event for IE.
Nov 25, 2019
dca3f97
Fix bug wheel event for IE
Nov 26, 2019
3127d52
fix typo (add negation for isAddedWheelEvent statement)
May 23, 2020
243eb21
Merge remote-tracking branch 'origin/vadzimZgerski/fixbug-wheel-event…
May 23, 2020
a7aa5c6
The `preprocess` script fix
cy6eria May 25, 2020
5e2b22c
Merge pull request #4861 from plotly/bump-node-sass-and-espree-v7
archmoj May 25, 2020
16179c1
Merge pull request #4385 from ZgerskiyVadim/vadzimZgerski/fixbug-whee…
archmoj May 26, 2020
3ec3d20
bump dev-deps May 26
archmoj May 26, 2020
f60c505
Merge pull request #4873 from plotly/bump-packages-May26-2020
archmoj May 27, 2020
c415868
fix 4831 - discard ranges in parcoords axisbrush dedupeRealRanges
archmoj May 27, 2020
80becdf
bump regl v.1.6.0 and relax version after es5 and premultipliedAlpha …
archmoj May 27, 2020
aa840db
bump fuse.js
archmoj May 28, 2020
574d307
bump latest regl
archmoj May 28, 2020
2989bbc
fixups to upgrade fuse.js to v6
archmoj May 28, 2020
af306f2
Merge pull request #4881 from plotly/bump-regl-v1.6.0
archmoj May 28, 2020
5b8b1db
Merge pull request #4882 from plotly/bump-fuse.js
archmoj May 28, 2020
0fb92d4
attempt improving ticks on rangebreaks
archmoj Jun 1, 2020
5c8055b
fix issue 4879
archmoj Jun 1, 2020
0a782d8
invert if statement
archmoj Jun 2, 2020
6cd55b5
drop extra function for hour rangebreaks
archmoj Jun 2, 2020
db7d47d
drop extra logic for dayRatio
archmoj Jun 2, 2020
8c8c928
drop extra logic for dynamic oneDay
archmoj Jun 2, 2020
21f4284
drop extra logic for startHour
archmoj Jun 2, 2020
9e7b80e
drop extra logic for dayHours
archmoj Jun 2, 2020
22e5658
avoid too tick overlaps on x axes with rangebreaks and now only when …
archmoj Jun 2, 2020
b38688d
reverse loop order
archmoj Jun 2, 2020
c5cf45a
fixups to avoid single tick
archmoj Jun 2, 2020
9241578
reduce roughDTick by total length of breaks
archmoj Jun 3, 2020
f90690f
Merge pull request #4831 from plotly/rangebreaks-improve-ticks
archmoj Jun 3, 2020
4a0b877
add image test for bar with x in milisecond and base
archmoj Jun 3, 2020
2087766
fix milliseconds not to depend on timezone
archmoj Jun 3, 2020
6155965
apply UTC time only to bar length for now
archmoj Jun 4, 2020
118dc82
add Gantt chart mock
archmoj Jun 4, 2020
bff79dc
add jasmine test to lock down issue 4558
archmoj Jun 4, 2020
2ae0fdf
fixups thanks to AJ review
archmoj Jun 5, 2020
bb5bec3
add simple early return
archmoj Jun 5, 2020
6c949ef
Merge pull request #4900 from plotly/bar-milliseconds-from-base
archmoj Jun 5, 2020
5c18894
add jasmine test to lock issue 4876
archmoj Jun 5, 2020
c5bb88b
bump dev dependencies
archmoj Jun 5, 2020
38c40c3
Merge pull request #4901 from plotly/bump-dev-dep-Jun5-20
archmoj Jun 5, 2020
24194b8
Update BUILDING.md
archmoj Jun 5, 2020
6206b29
refactor making msUTC an option object instead of a boolean
archmoj Jun 5, 2020
904351a
fix issue 4902
archmoj Jun 5, 2020
8e2771e
Merge pull request #4182 from marcj/patch-1
archmoj Jun 5, 2020
2d6cf3d
Merge pull request #4903 from plotly/gl3d-ticks-fix-milliseconds
archmoj Jun 5, 2020
bddaafa
allow template input in Lib.coerce2 - fix issue 4852
archmoj Jun 5, 2020
11fd23c
update axes_breaks-round-weekdaysm baseline
archmoj Jun 5, 2020
3581ff1
bump fuse.js and eslint versions
archmoj Jun 7, 2020
756a0ee
refactor coerce rename v to valIn
archmoj Jun 7, 2020
a2c1c93
refactor coerce rename out to valOut
archmoj Jun 7, 2020
8d0b4cb
exit early
archmoj Jun 7, 2020
5c3be81
rename propOut to valOut
archmoj Jun 7, 2020
642bf28
add internal _coerce function
archmoj Jun 7, 2020
57cec14
reduce condition checks
archmoj Jun 8, 2020
6d3daa5
bump fs-extra
archmoj Jun 8, 2020
a3c2064
Merge pull request #4864 from cy6eria/master
archmoj Jun 8, 2020
05fd22f
Merge pull request #4905 from plotly/bump-dev-deps-June07-2020
archmoj Jun 8, 2020
be70865
Merge pull request #4878 from plotly/fix4831-parcoords
archmoj Jun 8, 2020
1d9cc4a
keep track of source and input in _coerce function
archmoj Jun 9, 2020
b6eda45
bump minify-stream and madge versions
archmoj Jun 9, 2020
e07b3df
bump derequire version
archmoj Jun 9, 2020
31a1335
bump and relax ndarray version
archmoj Jun 9, 2020
caca1d2
Merge pull request #4909 from plotly/bump-dev-deps-Jun09-2020
archmoj Jun 10, 2020
1f62b1e
Merge pull request #4910 from plotly/bump-ndarray-bigInt64
archmoj Jun 10, 2020
5b4dcb6
update changelog v1.54.2
archmoj Jun 10, 2020
fbb5742
1.54.2
archmoj Jun 10, 2020
cf7c061
fixup Lib.coerce2 description and color test
archmoj Jun 10, 2020
21b86cd
add jasmine tests to cover invalid inputs in Lib.coerce2
archmoj Jun 10, 2020
d21c0bf
only take container computed size in px
alexcjohnson Jun 16, 2020
ca04720
Merge pull request #4925 from plotly/px-autosize
alexcjohnson Jun 16, 2020
fdf3506
update changelog v1.54.3
archmoj Jun 16, 2020
634a93a
1.54.3
archmoj Jun 16, 2020
2b911d1
make room for opts - rename opts to attr
archmoj Jun 16, 2020
adc36cd
validate input when calling from coerce2
archmoj Jun 16, 2020
24d1da9
remove unnecessary validation, also
archmoj Jun 17, 2020
3d5f311
Merge pull request #4904 from plotly/fix4852-template-tickwidth-tickc…
archmoj Jun 17, 2020
51788a4
no longer depend on ndarray-fill module that uses cwise with static-eval
archmoj Jun 18, 2020
43b9389
bump gl-plot2d and gl-plot3d versions
archmoj Jun 18, 2020
6652273
Merge pull request #4929 from plotly/no-cwise
archmoj Jun 18, 2020
9068017
no longer depend on cwise and optimize for 2d operations
archmoj Jun 18, 2020
db6f9e7
more optimization for invert and 2d case
archmoj Jun 18, 2020
665cd7c
Merge pull request #4930 from plotly/surface-no-cwise
archmoj Jun 19, 2020
72cb52c
bump some dev deps
archmoj Jun 22, 2020
a3ee4f8
Merge pull request #4934 from plotly/bump-dev-deps-June22-2020
archmoj Jun 22, 2020
32a352d
update changelog for v1.54.4
archmoj Jun 22, 2020
13947fc
1.54.4
archmoj Jun 22, 2020
e468f04
refactor box plot
archmoj Jun 22, 2020
5900b03
fix issue 4933 for ohlc, candlestick and box plots
archmoj Jun 22, 2020
bfbb732
handle undefined args in Plotly.validate
archmoj Jun 22, 2020
466f43c
Fix divider placement on reversed axes
justin-sleep Jun 22, 2020
c21b3a5
Merge pull request #4938 from plotly/handle-undefined-args-in-validate
archmoj Jun 22, 2020
b4a4004
Merge pull request #4937 from plotly/fix4933-rangebreaks-ohlc-box
archmoj Jun 22, 2020
75d91fa
Add mock for reversed axis dividers
justin-sleep Jun 22, 2020
86c0b60
Rewrite divider check for reversed axis
justin-sleep Jun 22, 2020
1118cfd
Replace baseline with Docker-generated image
justin-sleep Jun 22, 2020
f64ab49
Add check for empty vals in getDividerVals
justin-sleep Jun 23, 2020
cc2c8df
Merge pull request #4939 from justin-sleep/fix-reversed-dividers
archmoj Jun 23, 2020
12008ca
update changelog for v1.54.5
archmoj Jun 23, 2020
3451056
1.54.5
archmoj Jun 23, 2020
e2cb93c
bump is-mobile v2.2.2
archmoj Jun 24, 2020
29fdc1b
bump through2 fuse.js eslint versions
archmoj Jun 24, 2020
5eaf29d
separate heatmapgl supplyDefaults from heatmap
archmoj Jun 24, 2020
682973d
add tests for heatmapgl supplyDefaults - and bypass calendars for now
archmoj Jun 24, 2020
09da79b
Merge pull request #4947 from plotly/bump-dev-deps-june24-2020
archmoj Jun 24, 2020
3f1b015
Merge pull request #4948 from plotly/is-mobile-v2.2.2
archmoj Jun 24, 2020
14c7632
Merge pull request #4950 from plotly/fix4945-heatmapgl-coerce
archmoj Jun 24, 2020
76edd6d
do not coerce contourgl attributes that are not implemented
archmoj Jun 24, 2020
5c0179d
Merge pull request #4951 from plotly/test-contourgl-coerce
archmoj Jun 24, 2020
09ad12a
declare zsmooth for heatmapgl and link to a fork that handles smooth …
archmoj Jun 24, 2020
29917b2
bump fuse.js
archmoj Jun 30, 2020
18d43a0
bump through2 v4
archmoj Jun 30, 2020
62dae89
fix median sort for issue 4966
archmoj Jun 30, 2020
945c2ba
apply numeric sort in ternary plot drag
archmoj Jun 30, 2020
3b9184b
apply numeric sort for parcats when only include numbers - fix issue …
archmoj Jun 30, 2020
b08d780
Merge pull request #4969 from plotly/fix4966-median-sort
archmoj Jun 30, 2020
7a6102a
Merge pull request #4970 from plotly/dev-deps-June30-2020
archmoj Jun 30, 2020
4a33271
Merge pull request #4973 from plotly/parcats-numeric-sort
archmoj Jul 1, 2020
c925cd4
Merge pull request #4975 from plotly/ternary-numeric-sort
archmoj Jul 1, 2020
1e431a1
make emptyCategories a method of axes
archmoj Jul 2, 2020
7296fb7
fix 4971 - empty axis categories only on react call not relayout
archmoj Jul 2, 2020
12303db
Merge pull request #4977 from plotly/fix4971-matches-relink
archmoj Jul 2, 2020
34110d7
apply fixfor bounds offset shift
archmoj Jul 6, 2020
20e9918
Fix spelling and lint Markdown.
jbampton Jul 6, 2020
7a274ed
Merge pull request #4981 from jbampton/fix-spelling-and-lint-markdown
alexcjohnson Jul 6, 2020
dede459
Lint Markdown. Fix missing HTTPS on links.
jbampton Jul 6, 2020
032285b
control the version of lodash in dev-dependencies to clear audit warn…
archmoj Jul 8, 2020
4e1b72f
bump lodash v4.17.19
archmoj Jul 8, 2020
51a8646
Merge pull request #4988 from plotly/dev-install-lodash
archmoj Jul 9, 2020
29347fe
update changelog v1.54.6
archmoj Jul 9, 2020
aaac215
1.54.6
archmoj Jul 9, 2020
6de9589
add ticklabelperiod to date axes to move labels to the middle of period
archmoj Jul 2, 2020
4292f08
add mock for period ticklabelmode
archmoj Jul 9, 2020
86248fe
Update broken external link
rio-yo Jul 13, 2020
839b775
Merge pull request #4997 from losiz17/master
alexcjohnson Jul 13, 2020
55813e4
Merge pull request #4982 from jbampton/lint-markdown-and-fix-links
archmoj Jul 20, 2020
6f3c415
bump gl-heatmap2d version
archmoj Jul 20, 2020
140b73b
bump various dev-dependencies
archmoj Jul 20, 2020
2a03fcd
Merge pull request #5001 from plotly/bump-dev-deps-July-20-2020
archmoj Jul 20, 2020
9f3e1db
use instant key instead of an empty string
archmoj Jul 20, 2020
0e124c2
move tick labels to period positions
archmoj Jul 20, 2020
35a9b91
fix year shift and avoid periods when increment is less than a day
archmoj Jul 20, 2020
93541eb
let explicit tickformat determine the offset not dtick
archmoj Jul 20, 2020
4f271d9
expand checks for various tickformat options
archmoj Jul 20, 2020
a5e6aae
hide label when falls outside the range
archmoj Jul 21, 2020
79f6875
fix for reversed ranges
archmoj Jul 21, 2020
5857754
add horizontal and vertical arrow markers
archmoj Jul 22, 2020
8cd6767
revise arrow markers names and defs
archmoj Jul 22, 2020
08c69d7
label the period before the first tick
archmoj Jul 21, 2020
8700a51
accept ISO-8601 short time offset format
mtgto Jul 23, 2020
fc0ba99
Revert "Fix setting tickwidth, tickcolor, ticklen, linecolor and poss…
archmoj Jul 23, 2020
f175cc5
Merge pull request #5016 from plotly/revert-4904-fix4852-template-tic…
archmoj Jul 23, 2020
be1fc3c
update changelog for v1.54.7
archmoj Jul 23, 2020
2ddfa84
1.54.7
archmoj Jul 23, 2020
556b5d4
Merge pull request #5015 from mtgto/iso8601_short_tz
archmoj Jul 24, 2020
9a8089c
Merge pull request #5010 from plotly/arrow-markers
archmoj Jul 24, 2020
edcb1a4
Merge pull request #4953 from plotly/fix4924-discrete-heatmap2d
archmoj Jul 24, 2020
79385c2
correct the pre tick0 label
archmoj Jul 24, 2020
66a98be
fixups for pre-tick0 and tick0 label in period mode
archmoj Jul 24, 2020
83f5cdd
correct logic for reversed ranges and add tests for some period scena…
archmoj Jul 24, 2020
6b6b475
Merge pull request #4993 from plotly/fix4911-ticklable-positioning
archmoj Jul 24, 2020
6105a07
Add Touch Support to RangeSlider #1098
priyanomi Jul 28, 2020
29ea31d
apply latest d3-time-format instead of d3 v3 time format
archmoj Jul 28, 2020
2315777
add test to display new formatting options
archmoj Jul 28, 2020
e92a88c
Revert "add test to display new formatting options"
archmoj Jul 29, 2020
c877e72
apply latest d3-time-format in lib_date test
archmoj Jul 29, 2020
2f7a14e
fixup week-of-year index in the old test and add test for new time fo…
archmoj Jul 29, 2020
8cabb47
add test for seconds and milliseconds since UNIX epoch
archmoj Jul 29, 2020
c666200
dev-install elliptic 6.5.3
archmoj Jul 29, 2020
67b23f2
bump karma 5.1.1
archmoj Jul 30, 2020
ee00a46
bump fuse.js 6.4.1
archmoj Jul 30, 2020
0426df3
Merge pull request #5026 from plotly/new-d3-time-format
archmoj Jul 30, 2020
38a850c
Merge pull request #5027 from plotly/bump-karma-5.1.1
archmoj Jul 30, 2020
0614631
Merge pull request #5028 from plotly/bump-fuse.js-6.4.1
archmoj Jul 30, 2020
648d4bb
Merge pull request #5029 from plotly/bump-elliptic
archmoj Jul 30, 2020
1420972
fix max latitude half span default
archmoj Jul 30, 2020
0de3bf3
Merge pull request #5033 from plotly/fix-max-latitude-span-dflt
archmoj Jul 30, 2020
ca42e02
fix typo - use mainplotinfo for the key
archmoj Jul 31, 2020
3d516f0
Merge pull request #5025 from priyanomi/range-slider-touch-integration
archmoj Jul 31, 2020
8415187
Merge pull request #5035 from plotly/fix-mainplotinfo-key
archmoj Jul 31, 2020
912cd18
bump browserify 16.5.2
archmoj Aug 4, 2020
1b5b915
bump eslint 7.6.0
archmoj Aug 4, 2020
4ce339b
bump prepend-file v2
archmoj Aug 4, 2020
29c860d
Merge pull request #5041 from plotly/browserify-16.5.2
archmoj Aug 4, 2020
99604c6
Merge pull request #5042 from plotly/eslint-7.6.0
archmoj Aug 4, 2020
a54c502
Merge pull request #5043 from plotly/prepend-file-2.0.0
archmoj Aug 4, 2020
6c23966
Merge remote-tracking branch 'origin/master' into pull-2911
archmoj Aug 4, 2020
cdf5fc8
bump base64-arraybuffer - remove unused is_array file - apply new lint
archmoj Aug 4, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
110 changes: 83 additions & 27 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,14 @@ version: 2.0
jobs:
build:
docker:
- image: circleci/node:10.9.0
- image: circleci/node:12.13.0
working_directory: ~/plotly.js
steps:
- checkout
- restore_cache:
keys:
- v{{ .Environment.CIRCLE_CACHE_VERSION }}-deps-{{ .Branch }}-{{ checksum "package-lock.json" }}
- v{{ .Environment.CIRCLE_CACHE_VERSION }}-deps-master-{{ checksum "package-lock.json" }}
- run:
name: Install dependencies
command: |
npm install
npm ci
- run:
name: List dependency versions
command: |
Expand All @@ -33,51 +29,59 @@ jobs:
command: |
npm run pretest
npm run cibuild
- save_cache:
paths:
- node_modules
key: v{{ .Environment.CIRCLE_CACHE_VERSION }}-deps-{{ .Branch }}-{{ checksum "package.json" }}
- run:
command: rm -rf .git
- persist_to_workspace:
root: .
root: /home/circleci
paths:
- node_modules
- build
- dist
- plotly.js

test-jasmine:
docker:
# need '-browsers' version to test in real (xvfb-wrapped) browsers
- image: circleci/node:10.9.0-browsers
- image: circleci/node:12.13.0-browsers
parallelism: 2
working_directory: ~/plotly.js
steps:
- checkout
- attach_workspace:
at: ~/plotly.js
at: ~/
- run:
name: Run jasmine tests (batch 1)
command: ./.circleci/test.sh jasmine

test-jasmine2:
docker:
# need '-browsers' version to test in real (xvfb-wrapped) browsers
- image: circleci/node:10.9.0-browsers
- image: circleci/node:12.13.0-browsers
parallelism: 3
working_directory: ~/plotly.js
steps:
- checkout
- attach_workspace:
at: ~/plotly.js
at: ~/
- run:
name: Run jasmine tests (batch 2)
command: ./.circleci/test.sh jasmine2

test-jasmine3:
docker:
# need '-browsers' version to test in real (xvfb-wrapped) browsers
- image: circleci/node:12.13.0-browsers
working_directory: ~/plotly.js
steps:
- attach_workspace:
at: ~/
- run:
name: Run jasmine tests (batch 3)
command: ./.circleci/test.sh jasmine3

test-image:
docker:
- image: plotly/testbed:latest
parallelism: 4
working_directory: /var/www/streambed/image_server/plotly.js/
steps:
- checkout
- attach_workspace:
at: /var/www/streambed/image_server/plotly.js/
at: /var/www/streambed/image_server/
- run:
name: Run and setup container
command: |
Expand All @@ -88,15 +92,15 @@ jobs:
command: ./.circleci/test.sh image
- store_artifacts:
path: build
destination: /

test-image2:
docker:
- image: plotly/testbed:latest
working_directory: /var/www/streambed/image_server/plotly.js/
steps:
- checkout
- attach_workspace:
at: /var/www/streambed/image_server/plotly.js/
at: /var/www/streambed/image_server/
- run:
name: Run and setup container
command: |
Expand All @@ -107,30 +111,79 @@ jobs:
command: ./.circleci/test.sh image2
- store_artifacts:
path: build
destination: /

test-syntax:
docker:
- image: circleci/node:10.9.0
- image: circleci/node:12.13.0
working_directory: ~/plotly.js
steps:
- checkout
- attach_workspace:
at: ~/plotly.js
at: ~/
- run:
name: Run syntax tests
command: ./.circleci/test.sh syntax

test-bundle:
docker:
# need '-browsers' version to test in real (xvfb-wrapped) browsers
- image: circleci/node:12.13.0-browsers
working_directory: ~/plotly.js
steps:
- attach_workspace:
at: ~/
- run:
name: Run test-bundle
command: ./.circleci/test.sh bundle

publish:
docker:
- image: circleci/node:12.13.0
working_directory: ~/plotly.js
steps:
- attach_workspace:
at: ~/
- run:
name: Build dist/
command: npm run build
- store_artifacts:
path: dist
destination: dist
- run:
name: Pack tarball
command: |
npm pack
version=$(node -e "console.log(require('./package.json').version)")
mv plotly.js-$version.tgz plotly.js.tgz
- store_artifacts:
path: plotly.js.tgz
destination: /plotly.js.tgz
- run:
name: Show URLs to build files
command: |
PROJECT_NUM=45646037
echo https://$CIRCLE_BUILD_NUM-$PROJECT_NUM-gh.circle-artifacts.com/0/plotly.js.tgz
echo https://$CIRCLE_BUILD_NUM-$PROJECT_NUM-gh.circle-artifacts.com/0/dist/plotly.js
echo https://$CIRCLE_BUILD_NUM-$PROJECT_NUM-gh.circle-artifacts.com/0/dist/plotly.min.js
echo https://$CIRCLE_BUILD_NUM-$PROJECT_NUM-gh.circle-artifacts.com/0/dist/plot-schema.json

workflows:
version: 2
build-and-test:
jobs:
- build
- test-bundle:
requires:
- build
- test-jasmine:
requires:
- build
- test-jasmine2:
requires:
- build
- test-jasmine3:
requires:
- build
- test-image:
requires:
- build
Expand All @@ -140,3 +193,6 @@ workflows:
- test-syntax:
requires:
- build
- publish:
requires:
- build
31 changes: 24 additions & 7 deletions .circleci/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,33 +44,50 @@ case $1 in
jasmine)
set_tz

npm run test-jasmine -- --skip-tags=gl,noCI,flaky || EXIT_STATE=$?
retry npm run test-jasmine -- --tags=flaky --skip-tags=noCI
npm run test-bundle || EXIT_STATE=$?
SUITE=$(circleci tests glob "$ROOT/test/jasmine/tests/*" | circleci tests split)
npm run test-jasmine -- $SUITE --skip-tags=gl,noCI,flaky || EXIT_STATE=$?

exit $EXIT_STATE
;;

jasmine2)
set_tz

SHARDS=($(node $ROOT/tasks/shard_jasmine_tests.js --tag=gl))
SHARDS=($(node $ROOT/tasks/shard_jasmine_tests.js --limit=5 --tag=gl | circleci tests split))
for s in ${SHARDS[@]}; do
retry npm run test-jasmine -- "$s" --tags=gl --skip-tags=noCI --doNotFailOnEmptyTestSuite
done

exit $EXIT_STATE
;;

jasmine3)
set_tz

SHARDS=($(node $ROOT/tasks/shard_jasmine_tests.js --limit=1 --tag=flaky | circleci tests split))

for s in ${SHARDS[@]}; do
retry npm run test-jasmine -- "$s" --tags=gl --skip-tags=noCI
retry npm run test-jasmine -- "$s" --tags=flaky --skip-tags=noCI
done

exit $EXIT_STATE
;;

image)
npm run test-image || EXIT_STATE=$?
SUITE=$(find $ROOT/test/image/mocks/ -type f -printf "%f\n" | circleci tests split)
npm run test-image -- $SUITE --filter --skip-flaky || EXIT_STATE=$?
exit $EXIT_STATE
;;

image2)
retry npm run test-image -- --just-flaky
npm run test-export || EXIT_STATE=$?
npm run test-image-gl2d || EXIT_STATE=$?
exit $EXIT_STATE
;;

bundle)
set_tz
npm run test-bundle || EXIT_STATE=$?
exit $EXIT_STATE
;;

Expand Down
12 changes: 8 additions & 4 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"eslint:recommended"
],
"parserOptions": {
"ecmaVersion": 5,
"ecmaVersion": 5
},
"env": {
"commonjs": true
Expand All @@ -31,9 +31,9 @@
"indent": [0],
"indent-legacy": [2, 4, {"SwitchCase": 1}],
"max-len": [0, 80],
"brace-style": [0, "stroustrup", {"allowSingleLine": true}],
"brace-style": [2, "1tbs", {"allowSingleLine": true}],
"curly": [2, "multi-line"],
"camelcase": [0, {"properties": "never"}],
"camelcase": [2, {"properties": "never"}],
"comma-spacing": [2, {"before": false, "after": true}],
"comma-style": [2, "last"],
"semi": [2],
Expand All @@ -50,6 +50,7 @@
"space-in-parens": [2, "never"],
"space-before-function-paren": [2, "never"],
"space-before-blocks": [2],
"padded-blocks": [2, "never"],
"spaced-comment": [2, "always"],
"no-tabs": [2],
"no-multi-spaces": [2, {"ignoreEOLComments": true}],
Expand All @@ -67,11 +68,14 @@
"no-shadow": [0, {"builtinGlobals": true}],
"block-scoped-var": [2],
"no-unused-vars": [2],
"one-var": [2, {"initialized": "never"}],
"no-undef-init": [2],
"no-use-before-define": [2, "nofunc"],
"no-loop-func": [2],
"no-console": [0],
"no-unused-labels": [2],
"no-useless-escape": [0]
"no-useless-escape": [0],
"func-name-matching": ["error", "always"],
"no-prototype-builtins": [0]
}
}
3 changes: 3 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# These are supported funding model platforms

custom: https://plot.ly/products/consulting-and-oem/
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ node_modules

build/*
!build/plotcss.js
!build/ploticon.js
!build/README.md

npm-debug.log*
Expand Down
1 change: 0 additions & 1 deletion .npmignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
build/*
!build/plotcss.js
!build/ploticon.js
!build/README.md

devtools
Expand Down
Loading