STF 安装过程
安装相关依赖
安装 NVM
wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.38.0/install.sh | bash
export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
nvm install 8.16.0
安装其它依赖
brew install rethinkdb graphicsmagick zeromq protobuf yasm pkg-config cmake android-tools-adb
source /etc/lsb-release && echo "deb https://download.rethinkdb.com/repository/ubuntu-$DISTRIB_CODENAME $DISTRIB_CODENAME main" | sudo tee /etc/apt/sources.list.d/rethinkdb.list
wget -qO- https://download.rethinkdb.com/repository/raw/pubkey.gpg | sudo apt-key add -
sudo apt-get update
apt install rethinkdb graphicsmagick yasm pkg-config cmake android-tools-adb libzmq3-dev
安装 STF
npm install -g @devicefarmer/stf
which libtool
brew unlink libtool
rm -rf /usr/local/bin/libtool
启动相关服务
rethinkdb --daemon
stf local --public-ip <your_internal_network_ip_here> --allow-remote
二次开发
git clone https://github.com/DeviceFarmer/stf.git
cd stf && npm install && npm link
npm run prepublish
docker 安装 STF
docker run -d --name rethinkdb -v /srv/rethinkdb:/data --net host rethinkdb rethinkdb --bind all --cache-size 8192 --http-port 8090
docker run -d --name adbd --privileged -v /dev/bus/usb:/dev/bus/usb --net host sorccu/adb:latest
docker run -d --name stf --net host openstf/stf stf local --public-ip 192.168.1.100