Skip to content

Commit a604e5c

Browse files
authored
Merge pull request #5959 from plotly/mathjax-test-firefox
Run Firefox MathJax tests on circleci instead of in the noci step at publish time
2 parents 642c034 + 07cdb6d commit a604e5c

File tree

3 files changed

+27
-2
lines changed

3 files changed

+27
-2
lines changed

.circleci/config.yml

+22
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,25 @@ jobs:
144144
name: Run jasmine tests (part D)
145145
command: .circleci/test.sh bundle-jasmine
146146

147+
mathjax-firefox81:
148+
docker:
149+
# need '-browsers' version to test in real (xvfb-wrapped) browsers
150+
- image: cimg/node:16.8.0-browsers
151+
environment:
152+
# Alaska time (arbitrary timezone to test date logic)
153+
TZ: "America/Anchorage"
154+
working_directory: ~/plotly.js
155+
steps:
156+
- browser-tools/install-browser-tools: &browser-versions
157+
firefox-version: '81.0'
158+
install-chrome: false
159+
install-chromedriver: false
160+
- attach_workspace:
161+
at: ~/
162+
- run:
163+
name: Test MathJax on firefox-81
164+
command: .circleci/test.sh mathjax-firefox
165+
147166
make-baselines:
148167
parallelism: 4
149168
docker:
@@ -321,6 +340,9 @@ workflows:
321340
- bundle-jasmine:
322341
requires:
323342
- install-and-cibuild
343+
- mathjax-firefox81:
344+
requires:
345+
- install-and-cibuild
324346
- no-gl-jasmine:
325347
requires:
326348
- install-and-cibuild

.circleci/test.sh

+5
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,11 @@ case $1 in
6969
exit $EXIT_STATE
7070
;;
7171

72+
mathjax-firefox)
73+
./node_modules/karma/bin/karma start test/jasmine/karma.conf.js --FF --bundleTest=mathjax --nowatch || EXIT_STATE=$?
74+
exit $EXIT_STATE
75+
;;
76+
7277
make-baselines)
7378
SUITE=$(find $ROOT/test/image/mocks/ -type f -printf "%f\n" | sed 's/\.json$//1' | circleci tests split)
7479
python3 test/image/make_baseline.py $SUITE || EXIT_STATE=$?

tasks/noci_test.sh

-2
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@ 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 && \
2321
# run noCI tests
2422
npm run test-jasmine -- --tags=noCI,noCIdep --nowatch || EXIT_STATE=$?
2523
}

0 commit comments

Comments
 (0)