Skip to content

Commit 199d9ad

Browse files
authored
Merge pull request #5604 from plotly/more-recent-nodejs-12
using a more recent nodejs v12 and Chrome verisions on the CircleCI
2 parents 5442bba + 7923e59 commit 199d9ad

File tree

4 files changed

+14
-28
lines changed

4 files changed

+14
-28
lines changed

.circleci/config.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ version: 2.0
1010
jobs:
1111
install-and-cibuild:
1212
docker:
13-
- image: circleci/node:12.13.0
13+
- image: circleci/node:12.22.1
1414
working_directory: ~/plotly.js
1515
steps:
1616
- checkout
@@ -43,7 +43,7 @@ jobs:
4343
no-gl-jasmine:
4444
docker:
4545
# need '-browsers' version to test in real (xvfb-wrapped) browsers
46-
- image: circleci/node:12.13.0-browsers
46+
- image: circleci/node:12.22.1-browsers
4747
parallelism: 8
4848
working_directory: ~/plotly.js
4949
steps:
@@ -56,7 +56,7 @@ jobs:
5656
webgl-jasmine:
5757
docker:
5858
# need '-browsers' version to test in real (xvfb-wrapped) browsers
59-
- image: circleci/node:12.13.0-browsers
59+
- image: circleci/node:12.22.1-browsers
6060
parallelism: 8
6161
working_directory: ~/plotly.js
6262
steps:
@@ -69,7 +69,7 @@ jobs:
6969
no-gl-flaky-jasmine:
7070
docker:
7171
# need '-browsers' version to test in real (xvfb-wrapped) browsers
72-
- image: circleci/node:12.13.0-browsers
72+
- image: circleci/node:12.22.1-browsers
7373
working_directory: ~/plotly.js
7474
steps:
7575
- attach_workspace:
@@ -119,7 +119,7 @@ jobs:
119119

120120
source-syntax:
121121
docker:
122-
- image: circleci/node:12.13.0
122+
- image: circleci/node:12.22.1
123123
working_directory: ~/plotly.js
124124
steps:
125125
- attach_workspace:
@@ -131,7 +131,7 @@ jobs:
131131
jasmine-bundle:
132132
docker:
133133
# need '-browsers' version to test in real (xvfb-wrapped) browsers
134-
- image: circleci/node:12.13.0-browsers
134+
- image: circleci/node:12.22.1-browsers
135135
working_directory: ~/plotly.js
136136
steps:
137137
- attach_workspace:
@@ -142,7 +142,7 @@ jobs:
142142

143143
publish-dist:
144144
docker:
145-
- image: circleci/node:12.13.0
145+
- image: circleci/node:12.22.1
146146
working_directory: ~/plotly.js
147147
steps:
148148
- attach_workspace:
@@ -177,7 +177,7 @@ jobs:
177177

178178
test-dist1:
179179
docker:
180-
- image: circleci/node:12.13.0
180+
- image: circleci/node:12.22.1
181181
working_directory: ~/plotly.js
182182
steps:
183183
- attach_workspace:
@@ -197,7 +197,7 @@ jobs:
197197

198198
test-dist2:
199199
docker:
200-
- image: circleci/node:12.13.0
200+
- image: circleci/node:12.22.1
201201
working_directory: ~/plotly.js
202202
steps:
203203
- attach_workspace:

tasks/noci_test.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ root=$(dirname $0)/..
1818

1919
# jasmine specs with @noCI tag
2020
test_jasmine () {
21+
# run MathJax on FireFox
22+
./node_modules/karma/bin/karma start test/jasmine/karma.conf.js --FF --bundleTest=mathjax --nowatch && \
23+
# run noCI tests
2124
npm run test-jasmine -- --tags=noCI,noCIdep --nowatch || EXIT_STATE=$?
2225
}
2326

tasks/test_bundle.js

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -31,23 +31,6 @@ glob(pathToJasmineBundleTests + '/*.js', function(err, files) {
3131
};
3232
});
3333

34-
var mathjaxTestFirefox = function(cb) {
35-
var cmd = [
36-
'karma', 'start',
37-
path.join(constants.pathToRoot, 'test', 'jasmine', 'karma.conf.js'),
38-
'--FF',
39-
'--bundleTest=mathjax',
40-
'--nowatch'
41-
].join(' ');
42-
43-
console.log('Running: ' + cmd);
44-
45-
exec(cmd, function(err) {
46-
cb(null, err);
47-
}).stdout.pipe(process.stdout);
48-
};
49-
tasks.push(mathjaxTestFirefox);
50-
5134
runSeries(tasks, function(err, results) {
5235
if(err) throw err;
5336

test/jasmine/tests/shapes_test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1124,8 +1124,8 @@ describe('A fixed size shape', function() {
11241124
var shapeNodeAfterDrag = getFirstShapeNode();
11251125
var bBoxAfterDrag = shapeNodeAfterDrag.getBoundingClientRect();
11261126
var resizeFactor = shallShrink ? -1 : 1;
1127-
expect(bBoxAfterDrag.height).toBe(bBoxBeforeDrag.height + resizeFactor * Math.abs(dy));
1128-
expect(bBoxAfterDrag.width).toBe(bBoxBeforeDrag.width + resizeFactor * Math.abs(dx));
1127+
expect(bBoxAfterDrag.height).toBeCloseTo(bBoxBeforeDrag.height + resizeFactor * Math.abs(dy));
1128+
expect(bBoxAfterDrag.width).toBeCloseTo(bBoxBeforeDrag.width + resizeFactor * Math.abs(dx));
11291129
assertShapeFullyVisible(shapeNodeAfterDrag);
11301130
})
11311131
.then(done, done.fail);

0 commit comments

Comments
 (0)