mirror of https://github.com/pyodide/pyodide.git
Fix running of benchmark in Circle-CI
This commit is contained in:
parent
fa4456ed12
commit
4fe1d47459
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue