From 7fbbfeba821bad12aedc9ed0508a6e8c3e1040b6 Mon Sep 17 00:00:00 2001 From: Alexandre Lissy Date: Tue, 4 Aug 2020 14:16:05 +0200 Subject: [PATCH] Electron example --- taskcluster/examples-base.tyml | 4 ++-- taskcluster/examples-electronjs.yml | 14 ++++++++++++++ 2 files changed, 16 insertions(+), 2 deletions(-) create mode 100644 taskcluster/examples-electronjs.yml diff --git a/taskcluster/examples-base.tyml b/taskcluster/examples-base.tyml index 0cb8140897..0360612de3 100644 --- a/taskcluster/examples-base.tyml +++ b/taskcluster/examples-base.tyml @@ -25,8 +25,8 @@ then: DEEPSPEECH_MODEL: "https://github.com/reuben/DeepSpeech/releases/download/v0.8.0/models_0.8.tar.gz" DEEPSPEECH_AUDIO: "https://github.com/mozilla/DeepSpeech/releases/download/v0.4.1/audio-0.4.1.tar.gz" PIP_DEFAULT_TIMEOUT: "60" - EXAMPLES_CLONE_URL: "https://github.com/mozilla/DeepSpeech-examples" - EXAMPLES_CHECKOUT_TARGET: "r0.8" + EXAMPLES_CLONE_URL: "https://github.com/lissyx/DeepSpeech-examples" + EXAMPLES_CHECKOUT_TARGET: "pr-electron-example" command: - "/bin/bash" diff --git a/taskcluster/examples-electronjs.yml b/taskcluster/examples-electronjs.yml new file mode 100644 index 0000000000..c3a4257095 --- /dev/null +++ b/taskcluster/examples-electronjs.yml @@ -0,0 +1,14 @@ +build: + template_file: examples-base.tyml + docker_image: "node:12" + dependencies: + - "linux-amd64-cpu-opt" + system_setup: + > + apt-get -qq update && apt-get -qq -y install ${electronjs.packages_xenial.apt} + args: + tests_cmdline: "${system.homedir.linux}/DeepSpeech/examples/electron/test.sh" + workerType: "${docker.dsTests}" + metadata: + name: "DeepSpeech examples: ElectronJS/React on NodeJS v12.x" + description: "DeepSpeech examples: ElectronJS/React on NodeJS v12.x"