Linux CI scripts fixes

This commit is contained in:
Reuben Morais 2021-04-20 21:18:41 +02:00
parent 3f85c1d8da
commit 01b5a79c5c
6 changed files with 46 additions and 2 deletions

View File

@ -4,7 +4,7 @@ set -xe
export OS=$(uname) export OS=$(uname)
if [ "${OS}" = "Linux" ]; then 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 PYENV_ROOT="${DS_ROOT_TASK}/pyenv-root"
export DS_CPU_COUNT=$(nproc) export DS_CPU_COUNT=$(nproc)
fi; fi;

View File

@ -28,6 +28,12 @@ export_node_bin_path
which electron which electron
which node 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 node --version
stt --version stt --version
@ -35,3 +41,8 @@ stt --version
check_runtime_electronjs check_runtime_electronjs
run_electronjs_prod_inference_tests "${bitrate}" run_electronjs_prod_inference_tests "${bitrate}"
if [ "${OS}" = "Linux" ]; then
sleep 1
sudo kill -9 ${xvfb_process} || true
fi

View File

@ -21,6 +21,12 @@ export_node_bin_path
which electron which electron
which node 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 node --version
stt --version stt --version
@ -28,3 +34,8 @@ stt --version
check_runtime_electronjs check_runtime_electronjs
run_electronjs_inference_tests run_electronjs_inference_tests
if [ "${OS}" = "Linux" ]; then
sleep 1
sudo kill -9 ${xvfb_process} || true
fi

View File

@ -28,6 +28,12 @@ export_node_bin_path
which electron which electron
which node 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 node --version
stt --version stt --version
@ -35,3 +41,8 @@ stt --version
check_runtime_electronjs check_runtime_electronjs
run_electronjs_prodtflite_inference_tests "${bitrate}" run_electronjs_prodtflite_inference_tests "${bitrate}"
if [ "${OS}" = "Linux" ]; then
sleep 1
sudo kill -9 ${xvfb_process} || true
fi

View File

@ -25,6 +25,12 @@ export_node_bin_path
which electron which electron
which node 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 node --version
stt --version stt --version
@ -32,3 +38,8 @@ stt --version
check_runtime_electronjs check_runtime_electronjs
run_electronjs_inference_tests run_electronjs_inference_tests
if [ "${OS}" = "Linux" ]; then
sleep 1
sudo kill -9 ${xvfb_process} || true
fi

View File

@ -4,7 +4,7 @@ set -ex
export OS=$(uname) export OS=$(uname)
if [ "${OS}" = "Linux" ]; then 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_URL=https://github.com/bazelbuild/bazel/releases/download/3.1.0/bazel-3.1.0-installer-linux-x86_64.sh
BAZEL_SHA256=7ba815cbac712d061fe728fef958651512ff394b2708e89f79586ec93d1185ed BAZEL_SHA256=7ba815cbac712d061fe728fef958651512ff394b2708e89f79586ec93d1185ed