Bug 1142779 - Add buildbot steps for cloning and running tests r=lightsofapollo

--HG--
extra : rebase_source : 35632376dd268f8a574fe560c2431639897653eb
This commit is contained in:
Gregory Arndt 2015-03-12 19:53:00 -05:00
parent 46f3669e04
commit 2145d9b126
2 changed files with 12 additions and 8 deletions

View File

@ -23,4 +23,14 @@ echo "Retrieved device. Session: $SESSION_ID"
curl -o /home/worker/data/device.json -s -H "Accept: application/json" http://$CLOUD_HOST/device/properties
eval $@
buildbot_step 'Gaia clone' tc-vcs checkout /home/worker/gaia/source $GAIA_BASE_REPOSITORY $GAIA_HEAD_REPOSITORY $GAIA_REV $GAIA_REF
cd gaia/source/tests/python/gaia-ui-tests/
python setup.py develop
pip install py
cd /home/worker/
buildbot_step 'Running tests' eval $@
echo "Releasing device."
curl --request POST http://$CLOUD_HOST/device/release

View File

@ -15,13 +15,7 @@ task:
testdroidProxy: true
maxRunTime: 7200
command:
- >
tc-vcs checkout /home/worker/gaia/source $GAIA_BASE_REPOSITORY $GAIA_HEAD_REPOSITORY $GAIA_REV $GAIA_REF &&
cd gaia/source/tests/python/gaia-ui-tests/ &&
python setup.py develop &&
pip install py &&
cd /home/worker/ &&
gaiatest --testvars=/home/worker/data/gaia_testvars.json --testvars=/home/worker/data/device.json --adb-host=$PROXY_HOST --adb-port=$ADB_PORT --address=$PROXY_HOST:$MARIONETTE_PORT --device $SERIAL_ID --xml-output=/home/worker/upload/logs/xml_output.xml --timeout=10000 --log-html=/home/worker/upload/logs/index.html --restart --type=b2g+sanity-dsds --log-mach=- --log-raw=/home/worker/upload/logs/raw.log gaia/source/tests/python/gaia-ui-tests/gaiatest/tests/functional/manifest.ini
- gaiatest --testvars=/home/worker/data/gaia_testvars.json --testvars=/home/worker/data/device.json --adb-host=$PROXY_HOST --adb-port=$ADB_PORT --address=$PROXY_HOST:$MARIONETTE_PORT --device $SERIAL_ID --xml-output=/home/worker/upload/logs/xml_output.xml --timeout=10000 --log-html=/home/worker/upload/logs/index.html --restart --type=b2g+sanity-dsds --log-mach=- --log-raw=/home/worker/upload/logs/raw.log gaia/source/tests/python/gaia-ui-tests/gaiatest/tests/functional/manifest.ini
artifacts:
'private/device.json':
type: file