File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,8 @@ export LC_ALL=C
88
99export CI_RETRY_EXE=" /ci_retry --"
1010
11+ pushd " /"
12+
1113${CI_RETRY_EXE} apt-get update
1214# Lint dependencies:
1315# - automake pkg-config libtool (for lint_includes_build_config)
@@ -28,7 +30,7 @@ if [ ! -d "${PYTHON_PATH}/bin" ]; then
2830 libbz2-dev libreadline-dev libsqlite3-dev curl llvm \
2931 libncursesw5-dev xz-utils tk-dev libxml2-dev libxmlsec1-dev libffi-dev liblzma-dev \
3032 clang
31- env CC=clang python-build " $( cat " . /.python-version" ) " " ${PYTHON_PATH} "
33+ env CC=clang python-build " $( cat " /.python-version" ) " " ${PYTHON_PATH} "
3234fi
3335export PATH=" ${PYTHON_PATH} /bin:${PATH} "
3436command -v python3
@@ -38,7 +40,7 @@ export LINT_RUNNER_PATH="/lint_test_runner"
3840if [ ! -d " ${LINT_RUNNER_PATH} " ]; then
3941 ${CI_RETRY_EXE} apt-get install -y cargo
4042 (
41- cd . /test/lint/test_runner || exit 1
43+ cd " /test/lint/test_runner" || exit 1
4244 cargo build
4345 mkdir -p " ${LINT_RUNNER_PATH} "
4446 mv target/debug/test_runner " ${LINT_RUNNER_PATH} "
@@ -62,3 +64,5 @@ MLC_VERSION=v0.18.0
6264MLC_BIN=mlc-x86_64-linux
6365curl -sL " https://github.com/becheran/mlc/releases/download/${MLC_VERSION} /${MLC_BIN} " -o " /usr/bin/mlc"
6466chmod +x /usr/bin/mlc
67+
68+ popd || exit
Original file line number Diff line number Diff line change @@ -9,6 +9,9 @@ export LC_ALL=C.UTF-8
99# Only used in .cirrus.yml. Refer to test/lint/README.md on how to run locally.
1010
1111cp " ./ci/retry/retry" " /ci_retry"
12+ cp " ./.python-version" " /.python-version"
13+ mkdir --parents " /test/lint"
14+ cp --recursive " ./test/lint/test_runner" " /test/lint/"
1215set -o errexit; source ./ci/lint/04_install.sh
1316set -o errexit
1417./ci/lint/06_script.sh
You can’t perform that action at this time.
0 commit comments