mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-07-01 19:21:28 +02:00
ci: Add missing errexit to lint CI install
Otherwise, a possible failure is silently ignored. Also, rename the file, while touching it, to clarify installing is the first step.
This commit is contained in:
@ -6,6 +6,8 @@
|
|||||||
|
|
||||||
export LC_ALL=C
|
export LC_ALL=C
|
||||||
|
|
||||||
|
set -o errexit -o pipefail -o xtrace
|
||||||
|
|
||||||
export CI_RETRY_EXE="/ci_retry --"
|
export CI_RETRY_EXE="/ci_retry --"
|
||||||
|
|
||||||
pushd "/"
|
pushd "/"
|
@ -12,7 +12,7 @@ ENV LC_ALL=C.UTF-8
|
|||||||
COPY ./ci/retry/retry /ci_retry
|
COPY ./ci/retry/retry /ci_retry
|
||||||
COPY ./.python-version /.python-version
|
COPY ./.python-version /.python-version
|
||||||
COPY ./ci/lint/container-entrypoint.sh /entrypoint.sh
|
COPY ./ci/lint/container-entrypoint.sh /entrypoint.sh
|
||||||
COPY ./ci/lint/04_install.sh /install.sh
|
COPY ./ci/lint/01_install.sh /install.sh
|
||||||
|
|
||||||
RUN /install.sh && \
|
RUN /install.sh && \
|
||||||
echo 'alias lint="./ci/lint/06_script.sh"' >> ~/.bashrc && \
|
echo 'alias lint="./ci/lint/06_script.sh"' >> ~/.bashrc && \
|
||||||
|
@ -13,6 +13,6 @@ cp "./ci/retry/retry" "/ci_retry"
|
|||||||
cp "./.python-version" "/.python-version"
|
cp "./.python-version" "/.python-version"
|
||||||
mkdir --parents "/test/lint"
|
mkdir --parents "/test/lint"
|
||||||
cp --recursive "./test/lint/test_runner" "/test/lint/"
|
cp --recursive "./test/lint/test_runner" "/test/lint/"
|
||||||
set -o errexit; source ./ci/lint/04_install.sh
|
set -o errexit; source ./ci/lint/01_install.sh
|
||||||
set -o errexit
|
set -o errexit
|
||||||
./ci/lint/06_script.sh
|
./ci/lint/06_script.sh
|
||||||
|
@ -54,7 +54,7 @@ or `--help`:
|
|||||||
| `py_lint` | [ruff](https://github.com/astral-sh/ruff)
|
| `py_lint` | [ruff](https://github.com/astral-sh/ruff)
|
||||||
| markdown link check | [mlc](https://github.com/becheran/mlc)
|
| markdown link check | [mlc](https://github.com/becheran/mlc)
|
||||||
|
|
||||||
In use versions and install instructions are available in the [CI setup](../../ci/lint/04_install.sh).
|
In use versions and install instructions are available in the [CI setup](../../ci/lint/01_install.sh).
|
||||||
|
|
||||||
Please be aware that on Linux distributions all dependencies are usually available as packages, but could be outdated.
|
Please be aware that on Linux distributions all dependencies are usually available as packages, but could be outdated.
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user