File tree 2 files changed +9
-2
lines changed
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
8
8
9
9
export CI_RETRY_EXE=" /ci_retry --"
10
10
11
+ pushd " /"
12
+
11
13
${CI_RETRY_EXE} apt-get update
12
14
# Lint dependencies:
13
15
# - automake pkg-config libtool (for lint_includes_build_config)
@@ -28,7 +30,7 @@ if [ ! -d "${PYTHON_PATH}/bin" ]; then
28
30
libbz2-dev libreadline-dev libsqlite3-dev curl llvm \
29
31
libncursesw5-dev xz-utils tk-dev libxml2-dev libxmlsec1-dev libffi-dev liblzma-dev \
30
32
clang
31
- env CC=clang python-build " $( cat " . /.python-version" ) " " ${PYTHON_PATH} "
33
+ env CC=clang python-build " $( cat " /.python-version" ) " " ${PYTHON_PATH} "
32
34
fi
33
35
export PATH=" ${PYTHON_PATH} /bin:${PATH} "
34
36
command -v python3
@@ -38,7 +40,7 @@ export LINT_RUNNER_PATH="/lint_test_runner"
38
40
if [ ! -d " ${LINT_RUNNER_PATH} " ]; then
39
41
${CI_RETRY_EXE} apt-get install -y cargo
40
42
(
41
- cd . /test/lint/test_runner || exit 1
43
+ cd " /test/lint/test_runner" || exit 1
42
44
cargo build
43
45
mkdir -p " ${LINT_RUNNER_PATH} "
44
46
mv target/debug/test_runner " ${LINT_RUNNER_PATH} "
@@ -62,3 +64,5 @@ MLC_VERSION=v0.18.0
62
64
MLC_BIN=mlc-x86_64-linux
63
65
curl -sL " https://github.com/becheran/mlc/releases/download/${MLC_VERSION} /${MLC_BIN} " -o " /usr/bin/mlc"
64
66
chmod +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
9
9
# Only used in .cirrus.yml. Refer to test/lint/README.md on how to run locally.
10
10
11
11
cp " ./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/"
12
15
set -o errexit; source ./ci/lint/04_install.sh
13
16
set -o errexit
14
17
./ci/lint/06_script.sh
You can’t perform that action at this time.
0 commit comments