You are browsing a read-only backup copy of Wikitech. The live site can be found at wikitech.wikimedia.org

Performance/Synthetic testing/Mobile phones

From Wikitech-static
< Performance‎ | Synthetic testing
Revision as of 11:26, 26 August 2020 by imported>Phedenskog (First steps on how to setup a server to handle the Android phones.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

WIP

Setup the server

We use a Mac Mini to drive and run the phones. To get that to work we need the following software:

  • NodeJS latest LTS (to be able to run sitespeed.io)
  • ADB (to drive the Android phone)
  • FFMPEG, ImageMagick 6, Python and pyssim to be able to analyze the video and get Visual Metrics

Kobiton

I've installed on two different servers and they have had different software. This is is from the latest install. You need to have homebrew installed.

Install NodeJS

brew install node@12

echo 'export PATH="/usr/local/opt/node@12/bin:$PATH"' >> ~/.zshrc

Install ImageMagick

brew install imagemagick@6

echo 'export PATH="/usr/local/opt/imagemagick@6/bin:$PATH"' >> ~/.zshrc

Install Pip and pyssim

curl https://bootstrap.pypa.io/get-pip.py --output get-pip.py

python get-pip.py

python -m pip install --upgrade --user setuptools

python -m pip install --user pyssim

Install Pip and pyssim

brew cask install android-platform-tools

Install FFMPEG

Download a static build of FFMPEG 4.X and and add it to the path.