Fix running of benchmark in Circle-CI

This commit is contained in:
Michael Droettboom 2018-10-01 21:13:32 -04:00
parent fa4456ed12
commit 4fe1d47459
1 changed files with 13 additions and 1 deletions

View File

@ -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: