File tree Expand file tree Collapse file tree 3 files changed +28
-5
lines changed Expand file tree Collapse file tree 3 files changed +28
-5
lines changed Original file line number Diff line number Diff line change 40
40
docker :
41
41
# need '-browsers' version to test in real (xvfb-wrapped) browsers
42
42
- image : circleci/node:10.9.0-browsers
43
+ parallelism : 2
43
44
working_directory : ~/plotly.js
44
45
steps :
45
46
- attach_workspace :
52
53
docker :
53
54
# need '-browsers' version to test in real (xvfb-wrapped) browsers
54
55
- image : circleci/node:10.9.0-browsers
56
+ parallelism : 2
55
57
working_directory : ~/plotly.js
56
58
steps :
57
59
- attach_workspace :
@@ -121,6 +123,18 @@ jobs:
121
123
name : Run syntax tests
122
124
command : ./.circleci/test.sh syntax
123
125
126
+ test-bundle :
127
+ docker :
128
+ # need '-browsers' version to test in real (xvfb-wrapped) browsers
129
+ - image : circleci/node:10.9.0-browsers
130
+ working_directory : ~/plotly.js
131
+ steps :
132
+ - attach_workspace :
133
+ at : ~/
134
+ - run :
135
+ name : Run test-bundle
136
+ command : ./.circleci/test.sh bundle
137
+
124
138
publish :
125
139
docker :
126
140
- image : circleci/node:10.9.0
@@ -157,6 +171,9 @@ workflows:
157
171
build-and-test :
158
172
jobs :
159
173
- build
174
+ - test-bundle :
175
+ requires :
176
+ - build
160
177
- test-jasmine :
161
178
requires :
162
179
- build
Original file line number Diff line number Diff line change @@ -44,16 +44,16 @@ case $1 in
44
44
jasmine)
45
45
set_tz
46
46
47
- npm run test- jasmine -- --skip-tags=gl,noCI,flaky || EXIT_STATE= $?
48
- npm run test-bundle || EXIT_STATE=$?
47
+ SUITE= $( circleci tests glob " $ROOT / test/ jasmine/tests/* " | circleci tests split )
48
+ npm run test-jasmine -- $SUITE --skip-tags=gl,noCI,flaky || EXIT_STATE=$?
49
49
50
50
exit $EXIT_STATE
51
51
;;
52
52
53
53
jasmine2)
54
54
set_tz
55
55
56
- SHARDS=($( node $ROOT /tasks/shard_jasmine_tests.js --tag=gl) )
56
+ SHARDS=($( node $ROOT /tasks/shard_jasmine_tests.js --tag=gl | circleci tests split ) )
57
57
58
58
for s in ${SHARDS[@]} ; do
59
59
retry npm run test-jasmine -- " $s " --tags=gl --skip-tags=noCI
@@ -65,7 +65,7 @@ case $1 in
65
65
jasmine3)
66
66
set_tz
67
67
68
- SHARDS=($( node $ROOT /tasks/shard_jasmine_tests.js --tag=flaky) )
68
+ SHARDS=($( node $ROOT /tasks/shard_jasmine_tests.js --tag=flaky | circleci tests split ) )
69
69
70
70
for s in ${SHARDS[@]} ; do
71
71
retry npm run test-jasmine -- " $s " --tags=flaky --skip-tags=noCI
@@ -85,6 +85,12 @@ case $1 in
85
85
exit $EXIT_STATE
86
86
;;
87
87
88
+ bundle)
89
+ set_tz
90
+ npm run test-bundle || EXIT_STATE=$?
91
+ exit $EXIT_STATE
92
+ ;;
93
+
88
94
syntax)
89
95
npm run lint || EXIT_STATE=$?
90
96
npm run test-syntax || EXIT_STATE=$?
Original file line number Diff line number Diff line change @@ -997,7 +997,7 @@ describe('sankey tests', function() {
997
997
} ) ;
998
998
999
999
[ 'node' , 'link' ] . forEach ( function ( obj ) {
1000
- it ( 'should not output hover/unhover event data when ' + obj + '.hoverinfo is skip' , function ( done ) {
1000
+ it ( '@flaky should not output hover/unhover event data when ' + obj + '.hoverinfo is skip' , function ( done ) {
1001
1001
var fig = Lib . extendDeep ( { } , mock ) ;
1002
1002
1003
1003
Plotly . plot ( gd , fig )
You can’t perform that action at this time.
0 commit comments