diff --git a/.circleci/config.yml b/.circleci/config.yml index 18c1f369a52..ffe18aee896 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -144,6 +144,25 @@ jobs: name: Run jasmine tests (part D) command: .circleci/test.sh bundle-jasmine + mathjax-firefox81: + docker: + # need '-browsers' version to test in real (xvfb-wrapped) browsers + - image: cimg/node:16.8.0-browsers + environment: + # Alaska time (arbitrary timezone to test date logic) + TZ: "America/Anchorage" + working_directory: ~/plotly.js + steps: + - browser-tools/install-browser-tools: &browser-versions + firefox-version: '81.0' + install-chrome: false + install-chromedriver: false + - attach_workspace: + at: ~/ + - run: + name: Test MathJax on firefox-81 + command: .circleci/test.sh mathjax-firefox + make-baselines: parallelism: 4 docker: @@ -321,6 +340,9 @@ workflows: - bundle-jasmine: requires: - install-and-cibuild + - mathjax-firefox81: + requires: + - install-and-cibuild - no-gl-jasmine: requires: - install-and-cibuild diff --git a/.circleci/test.sh b/.circleci/test.sh index 23f7fd765ae..69da8c1cea7 100755 --- a/.circleci/test.sh +++ b/.circleci/test.sh @@ -69,6 +69,11 @@ case $1 in exit $EXIT_STATE ;; + mathjax-firefox) + ./node_modules/karma/bin/karma start test/jasmine/karma.conf.js --FF --bundleTest=mathjax --nowatch || EXIT_STATE=$? + exit $EXIT_STATE + ;; + make-baselines) SUITE=$(find $ROOT/test/image/mocks/ -type f -printf "%f\n" | sed 's/\.json$//1' | circleci tests split) python3 test/image/make_baseline.py $SUITE || EXIT_STATE=$? diff --git a/tasks/noci_test.sh b/tasks/noci_test.sh index 8b5734aff14..f1605c1c0f0 100755 --- a/tasks/noci_test.sh +++ b/tasks/noci_test.sh @@ -18,8 +18,6 @@ root=$(dirname $0)/.. # jasmine specs with @noCI tag test_jasmine () { - # run MathJax on FireFox - ./node_modules/karma/bin/karma start test/jasmine/karma.conf.js --FF --bundleTest=mathjax --nowatch && \ # run noCI tests npm run test-jasmine -- --tags=noCI,noCIdep --nowatch || EXIT_STATE=$? }