Skip to content

Commit d418803

Browse files
committed
ci: Bump lint task image to Ubuntu Jammy
1 parent f827eec commit d418803

File tree

2 files changed

+5
-12
lines changed

2 files changed

+5
-12
lines changed

.cirrus.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,10 @@ compute_credits_template: &CREDITS_TEMPLATE
6464
use_compute_credits: $CIRRUS_REPO_FULL_NAME == 'bitcoin/bitcoin' && $CIRRUS_PR != ""
6565

6666
task:
67-
name: 'lint [bionic]'
67+
name: 'lint [jammy]'
6868
<< : *BASE_TEMPLATE
6969
container:
70-
image: ubuntu:bionic
70+
image: ubuntu:jammy
7171
cpu: 1
7272
memory: 1G
7373
# For faster CI feedback, immediately schedule the linters

ci/lint/04_install.sh

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,22 +18,15 @@ if [ ! -d "${PYTHON_PATH}/bin" ]; then
1818
)
1919
# For dependencies see https://github.com/pyenv/pyenv/wiki#suggested-build-environment
2020
${CI_RETRY_EXE} apt-get install -y build-essential libssl-dev zlib1g-dev \
21-
libbz2-dev libreadline-dev libsqlite3-dev curl llvm \
21+
libbz2-dev libreadline-dev libsqlite3-dev curl clang llvm \
2222
libncursesw5-dev xz-utils tk-dev libxml2-dev libxmlsec1-dev libffi-dev liblzma-dev
23-
python-build "$(cat "${BASE_ROOT_DIR}/.python-version")" "${PYTHON_PATH}"
23+
# Using clang to workaround https://github.com/pyenv/pyenv/issues/2359.
24+
env CC=clang python-build "$(cat "${BASE_ROOT_DIR}/.python-version")" "${PYTHON_PATH}"
2425
fi
2526
export PATH="${PYTHON_PATH}/bin:${PATH}"
2627
command -v python3
2728
python3 --version
2829

29-
(
30-
# Temporary workaround for https://github.com/bitcoin/bitcoin/pull/26130#issuecomment-1260499544
31-
# Can be removed once the underlying image is bumped to something that includes git2.34 or later
32-
sed -i -e 's/bionic/jammy/g' /etc/apt/sources.list
33-
${CI_RETRY_EXE} apt-get update
34-
${CI_RETRY_EXE} apt-get install -y --reinstall git
35-
)
36-
3730
${CI_RETRY_EXE} pip3 install codespell==2.2.1
3831
${CI_RETRY_EXE} pip3 install flake8==4.0.1
3932
${CI_RETRY_EXE} pip3 install mypy==0.942

0 commit comments

Comments
 (0)