3
## This is the script jenkins should run to provision a device in the lab
4
## Intersting environment variables that must be set:
5
## ANDROID_SERIAL - specify another android device
6
## NETWORK_FILE - an alternative network file if you aren't in the lab
7
## TOUCH_IMAGE=--ubuntu-bootstrap (provision with read-only system image)
12
BASEDIR=$(dirname $(readlink -f $0))
14
RESDIR=`pwd`/clientlogs
15
UTAH_PHABLET_CMD="${UTAH_PHABLET_CMD-/usr/share/utah/examples/run_utah_phablet.py}"
17
ANDROID_SERIAL="${ANDROID_SERIAL-015d1884b20c1c0f}" #doanac's nexus7 at home
18
NETWORK_FILE="${NETWORK_FILE-/home/ubuntu/magners-wifi}"
23
${UTAH_PHABLET_CMD} -s ${ANDROID_SERIAL} --results-dir ${RESDIR} --network-file=${NETWORK_FILE} ${TOUCH_IMAGE}
25
# get our target-based utilities into our PATH
26
adb -s ${ANDROID_SERIAL} push ${BASEDIR}/../utils/target /usr/local/bin/