taskId: 1
task:
  metadata:
    name: '[TC] Gaia Python Integration Tests - device'
    description: Gaia Python Integration Tests
  workerType: testdroid-device
  retries: 0

  payload:
    env:
      DEVICE_CAPABILITIES: '{"type":"flame","memory":"319","sims": "1","build":"https://queue.taskcluster.net/v1/task/H0FPqxakT06Eg4wo4zPwMw/runs/0/artifacts/private/build/flame-kk.zip"}'
      GAIA_BASE_REPOSITORY: 'http://hg.mozilla.org/integration/gaia-central'
      GAIA_HEAD_REPOSITORY: 'http://github.com/mozilla-b2g/gaia'
    command:
      - entrypoint
      - >
        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/testdroid.json --testvars=/home/worker/data/acknowledge_risks.json --testvars=/home/worker/data/common.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:
      'public/device.json':
        type: file
        path: '/home/worker/data/device.json'
      'private/logs':
        type: directory
        path: '/home/worker/upload/logs/'
