build:
  template_file: linux-opt-base.tyml
  routes:
    - "index.project.deepspeech.deepspeech.native_client.${event.head.branchortag}.arm"
    - "index.project.deepspeech.deepspeech.native_client.${event.head.branchortag}.${event.head.sha}.arm"
    - "index.project.deepspeech.deepspeech.native_client.arm.${event.head.sha}"
  tensorflow: "https://index.taskcluster.net/v1/task/project.deepspeech.tensorflow.pip.r1.11.4cecc8c05b574c3edf8777447b7c8729483ebc8d.arm/artifacts/public/home.tar.xz"
  summarize_graph: "https://index.taskcluster.net/v1/task/project.deepspeech.tensorflow.pip.r1.11.4cecc8c05b574c3edf8777447b7c8729483ebc8d.cpu/artifacts/public/summarize_graph"
  ## multistrap 2.2.0-ubuntu1 is broken in 14.04: https://bugs.launchpad.net/ubuntu/+source/multistrap/+bug/1313787
  system_setup:
    >
      apt-get -qq -y install gdebi git pixz &&
      wget http://mirrors.kernel.org/ubuntu/pool/universe/m/multistrap/multistrap_2.2.0ubuntu2_all.deb -O /tmp/multistrap_2.2.0ubuntu2_all.deb &&
      echo "y" | gdebi /tmp/multistrap_2.2.0ubuntu2_all.deb &&
      ${nodejs.packages_trusty.prep_6} && ${nodejs.packages_trusty.apt_pinning}
      && apt-get -qq update && apt-get -qq -y install nodejs python-yaml &&
      apt-get -qq -y install ${python.packages_trusty.apt} && ${swig.packages.install_script}
  system_config:
    >
      multistrap -d /tmp/multistrap-raspbian-stretch/ -f ${system.homedir.linux}/DeepSpeech/ds/native_client/multistrap_raspbian_stretch.conf &&
      ${swig.patch_nodejs.linux}
  scripts:
    build: "taskcluster/rpi3-build.sh"
    package: "taskcluster/package.sh"
  metadata:
    name: "DeepSpeech Linux RPi3/ARMv7 CPU"
    description: "Building DeepSpeech for Linux RPi3 ARMv7, CPU only, optimized version"
