зеркало из https://github.com/mozilla/DeepSpeech.git
Linux CI scripts fixes
This commit is contained in:
Родитель
a750525237
Коммит
fee829a18f
|
@ -4,7 +4,7 @@ set -xe
|
|||
|
||||
export OS=$(uname)
|
||||
if [ "${OS}" = "Linux" ]; then
|
||||
export DS_ROOT_TASK=${HOME}
|
||||
export DS_ROOT_TASK=${CI_TASK_DIR}
|
||||
export PYENV_ROOT="${DS_ROOT_TASK}/pyenv-root"
|
||||
export DS_CPU_COUNT=$(nproc)
|
||||
fi;
|
||||
|
|
|
@ -28,6 +28,12 @@ export_node_bin_path
|
|||
which electron
|
||||
which node
|
||||
|
||||
if [ "${OS}" = "Linux" ]; then
|
||||
export DISPLAY=':99.0'
|
||||
sudo Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &
|
||||
xvfb_process=$!
|
||||
fi
|
||||
|
||||
node --version
|
||||
|
||||
deepspeech --version
|
||||
|
@ -35,3 +41,8 @@ deepspeech --version
|
|||
check_runtime_electronjs
|
||||
|
||||
run_electronjs_prod_inference_tests "${bitrate}"
|
||||
|
||||
if [ "${OS}" = "Linux" ]; then
|
||||
sleep 1
|
||||
sudo kill -9 ${xvfb_process} || true
|
||||
fi
|
||||
|
|
|
@ -21,6 +21,12 @@ export_node_bin_path
|
|||
which electron
|
||||
which node
|
||||
|
||||
if [ "${OS}" = "Linux" ]; then
|
||||
export DISPLAY=':99.0'
|
||||
sudo Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &
|
||||
xvfb_process=$!
|
||||
fi
|
||||
|
||||
node --version
|
||||
|
||||
deepspeech --version
|
||||
|
@ -28,3 +34,8 @@ deepspeech --version
|
|||
check_runtime_electronjs
|
||||
|
||||
run_electronjs_inference_tests
|
||||
|
||||
if [ "${OS}" = "Linux" ]; then
|
||||
sleep 1
|
||||
sudo kill -9 ${xvfb_process} || true
|
||||
fi
|
||||
|
|
|
@ -28,6 +28,12 @@ export_node_bin_path
|
|||
which electron
|
||||
which node
|
||||
|
||||
if [ "${OS}" = "Linux" ]; then
|
||||
export DISPLAY=':99.0'
|
||||
sudo Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &
|
||||
xvfb_process=$!
|
||||
fi
|
||||
|
||||
node --version
|
||||
|
||||
deepspeech --version
|
||||
|
@ -35,3 +41,8 @@ deepspeech --version
|
|||
check_runtime_electronjs
|
||||
|
||||
run_electronjs_prodtflite_inference_tests "${bitrate}"
|
||||
|
||||
if [ "${OS}" = "Linux" ]; then
|
||||
sleep 1
|
||||
sudo kill -9 ${xvfb_process} || true
|
||||
fi
|
||||
|
|
|
@ -25,6 +25,12 @@ export_node_bin_path
|
|||
which electron
|
||||
which node
|
||||
|
||||
if [ "${OS}" = "Linux" ]; then
|
||||
export DISPLAY=':99.0'
|
||||
sudo Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &
|
||||
xvfb_process=$!
|
||||
fi
|
||||
|
||||
node --version
|
||||
|
||||
deepspeech --version
|
||||
|
@ -32,3 +38,8 @@ deepspeech --version
|
|||
check_runtime_electronjs
|
||||
|
||||
run_electronjs_inference_tests
|
||||
|
||||
if [ "${OS}" = "Linux" ]; then
|
||||
sleep 1
|
||||
sudo kill -9 ${xvfb_process} || true
|
||||
fi
|
||||
|
|
|
@ -4,7 +4,7 @@ set -ex
|
|||
|
||||
export OS=$(uname)
|
||||
if [ "${OS}" = "Linux" ]; then
|
||||
export DS_ROOT_TASK=$(/usr/bin/realpath "${HOME}")
|
||||
export DS_ROOT_TASK=${CI_TASK_DIR}
|
||||
|
||||
BAZEL_URL=https://github.com/bazelbuild/bazel/releases/download/3.1.0/bazel-3.1.0-installer-linux-x86_64.sh
|
||||
BAZEL_SHA256=7ba815cbac712d061fe728fef958651512ff394b2708e89f79586ec93d1185ed
|
||||
|
|
Загрузка…
Ссылка в новой задаче