ubuntu 一键安装 OpenStf


#install oracle java https://www.digitalocean.com/community/tutorials/how-to-install-java-on-ubuntu-with-apt-get
sudo apt-get install python-software-properties
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java7-installer

#ANDROIDSTUDIO
#necessary for mksdcard
sudo apt-get install lib32stdc++6

#edit ~/.profile and add env variables
export ANDROID_SDK="$HOME/android-sdk-linux"
PATH=$PATH:$ANDROID_SDK/platform-tools;$ANDROID_SDK/tools

##PREREQ
#Node.js >= 0.12
sudo apt-get install node.js

#ADB properly set up

#RethinkDB >= 2.2
source /etc/lsb-release && echo "deb http://download.rethinkdb.com/apt $DISTRIB_CODENAME main" | sudo tee /etc/apt/sources.list.d/rethinkdb.list
wget -qO- https://download.rethinkdb.com/apt/pubkey.gpg | sudo apt-key add -
sudo apt-get update
sudo apt-get install rethinkdb

#GraphicsMagick (for resizing screenshots)
sudo apt-get install graphicsmagick

#ZeroMQ libraries installed
sudo apt-get install libzmq1
sudo apt-get install libzmq-dev

#Protocol Buffers libraries installed (seems part of rethinkDB)
sudo apt-get install libprotobuf*

#yasm installed (for compiling embedded libjpeg-turbo)
sudo apt-get install yasm
sudo apt-get install npm
sudo apt-get install nodejs-legacy
npm install --save jpeg-turbo

#pkg-config so that Node.js can find the libraries
sudo apt-get install pkg-config

#node >=6.9 so install 8.x
curl -sL https://deb.nodesource.com/setup_8.x | bash
apt-get install nodejs

#add mirrors
npm config set registry https://registry.npm.taobao.org
npm config get registry

##STF
sudo apt-get install git
mkdir ~/stf
cd ~/stf
sudo npm install zmq
sudo npm install -g stf

##Continue here
https://github.com/openstf/stf/tree/2.0.0#running