From 4fe1d4745968ff2b367df3cbcd1d693b03f004f2 Mon Sep 17 00:00:00 2001 From: Michael Droettboom Date: Mon, 1 Oct 2018 21:13:32 -0400 Subject: [PATCH] Fix running of benchmark in Circle-CI --- .circleci/config.yml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 3fca77efb..4aa4b10e0 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -128,9 +128,21 @@ jobs: command: | sudo bash -c "echo 'application/wasm wasm' >> /etc/mime.types" + # Get recent version of Firefox and geckodriver + wget -O firefox.tar.bz2 https://download.mozilla.org/\?product\=firefox-latest-ssl\&os\=linux64\&lang\=en-US + tar jxf firefox.tar.bz2 + wget https://github.com/mozilla/geckodriver/releases/download/v0.21.0/geckodriver-v0.21.0-linux64.tar.gz + tar zxf geckodriver-v0.21.0-linux64.tar.gz -C firefox + + # Get recent version of chromedriver + wget https://chromedriver.storage.googleapis.com/2.41/chromedriver_linux64.zip + unzip chromedriver_linux64.zip + mv chromedriver pyodide-env/bin/ + source pyodide-env/bin/activate export PATH=$PWD/firefox:$PATH - make benchmark + python benchmark/benchmark.py cpython/build/3.7.0/host/bin/python3 build/benchmarks.json + python benchmark/plot_benchmark.py build/benchmarks.json build/benchmarks.png deploy: machine: