-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes #2032
- Loading branch information
Alexandre Lissy
committed
Apr 10, 2019
1 parent
ed7f6bf
commit 938698b
Showing
7 changed files
with
99 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
build: | ||
template_file: test-linux-opt-base.tyml | ||
docker_image: "ubuntu:16.04" | ||
dependencies: | ||
- "node-package-cpu" | ||
- "test-training_upstream-linux-amd64-py27mu-opt" | ||
system_setup: | ||
> | ||
${nodejs.packages_xenial.prep_10} && ${nodejs.packages_xenial.apt_pinning} && apt-get -qq update && apt-get -qq -y install ${nodejs.packages_xenial.apt} | ||
args: | ||
tests_cmdline: "${system.homedir.linux}/DeepSpeech/ds/tc-electron-tests.sh 10.x 4.1.1" | ||
metadata: | ||
name: "DeepSpeech Linux AMD64 CPU ElectronJS v4.1 tests" | ||
description: "Testing DeepSpeech for Linux/AMD64 on ElectronJS v4.1, CPU only, optimized version" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
#!/bin/bash | ||
|
||
set -xe | ||
|
||
source $(dirname "$0")/tc-tests-utils.sh | ||
|
||
nodever=$1 | ||
electronver=$2 | ||
|
||
if [ -z "${nodever}" ]; then | ||
echo "No node version given, aborting." | ||
exit 1 | ||
fi; | ||
|
||
if [ -z "${elecronver}" ]; then | ||
echo "No electron version given, aborting." | ||
exit 1 | ||
fi; | ||
|
||
download_data | ||
|
||
node --version | ||
npm --version | ||
|
||
NODE_ROOT="${DS_ROOT_TASK}/ds-test/" | ||
export NODE_PATH="${NODE_ROOT}/node_modules/" | ||
export PATH="${NODE_ROOT}:${NODE_PATH}/.bin/:$PATH" | ||
|
||
npm install --prefix ${NODE_ROOT} electron@${electronver} | ||
|
||
npm install --prefix ${NODE_ROOT} ${DEEPSPEECH_NODEJS}/deepspeech-${DS_VERSION}.tgz | ||
|
||
alias deepspeech="${NODE_ROOT}/node_modules/electron/dist/electron ${NODE_ROOT}/node_modules/deepspeech/client.js" | ||
|
||
check_runtime_electronjs | ||
|
||
run_all_inference_tests |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters