Skip to content

Commit fe118ab

Browse files
committed
CI: Switch from deprecated circleci/buildpack-deps image to cimg/base
1 parent 10905ac commit fe118ab

File tree

3 files changed

+32
-19
lines changed

3 files changed

+32
-19
lines changed

.circleci/config.yml

Lines changed: 26 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -356,17 +356,9 @@ defaults:
356356
TERM: xterm
357357
MAKEFLAGS: -j 10
358358

359-
- base_buildpack_focal_small: &base_buildpack_focal_small
359+
- base_cimg_small: &base_cimg_small
360360
docker:
361-
- image: buildpack-deps:focal
362-
resource_class: small
363-
environment:
364-
TERM: xterm
365-
MAKEFLAGS: -j 2
366-
367-
- base_buildpack_latest_small: &base_buildpack_latest_small
368-
docker:
369-
- image: buildpack-deps:latest
361+
- image: cimg/base:current
370362
resource_class: small
371363
environment:
372364
TERM: xterm
@@ -681,12 +673,14 @@ jobs:
681673
- gitter_notify_failure_unless_pr
682674

683675
chk_coding_style:
684-
<<: *base_buildpack_focal_small
676+
<<: *base_cimg_small
685677
steps:
686678
- checkout
687679
- run:
688680
name: Install shellcheck
689-
command: apt -q update && apt install -y shellcheck
681+
command: |
682+
sudo apt -q update
683+
sudo apt install -y shellcheck
690684
- run:
691685
name: Check for C++ coding style
692686
command: ./scripts/check_style.sh
@@ -708,12 +702,14 @@ jobs:
708702
- gitter_notify_failure_unless_pr
709703

710704
chk_pylint:
711-
<<: *base_buildpack_focal_small
705+
<<: *base_cimg_small
712706
steps:
713707
- checkout
714708
- run:
715709
name: Install pip
716-
command: apt -q update && apt install -y python3-pip
710+
command: |
711+
sudo apt -q update
712+
sudo apt install -y python3-pip
717713
- run:
718714
name: Install pylint and dependencies of the scripts that will be linted
719715
command: python3 -m pip install
@@ -732,12 +728,14 @@ jobs:
732728
- gitter_notify_failure_unless_pr
733729

734730
chk_antlr_grammar:
735-
<<: *base_buildpack_focal_small
731+
<<: *base_cimg_small
736732
steps:
737733
- checkout
738734
- run:
739735
name: Install Java
740-
command: apt -q update && apt install -y openjdk-16-jdk
736+
command: |
737+
sudo apt -q update
738+
sudo apt install -y openjdk-16-jdk
741739
- run:
742740
name: Run tests
743741
command: ./scripts/test_antlr_grammar.sh
@@ -759,14 +757,14 @@ jobs:
759757
- gitter_notify_failure_unless_pr
760758

761759
chk_proofs:
762-
<<: *base_buildpack_latest_small
760+
<<: *base_cimg_small
763761
steps:
764762
- checkout
765763
- run:
766764
name: Z3 python deps
767765
command: |
768-
apt-get -qq update
769-
apt-get -qy install python3-pip
766+
sudo apt-get -qq update
767+
sudo apt-get -qy install python3-pip
770768
pip3 install --user z3-solver
771769
- run: *run_proofs
772770
- gitter_notify_failure_unless_pr
@@ -1405,6 +1403,10 @@ jobs:
14051403

14061404
b_bytecode_ubu:
14071405
<<: *base_ubuntu2004_small
1406+
environment:
1407+
TERM: xterm
1408+
MAKEFLAGS: -j 2
1409+
LC_ALL: C
14081410
steps:
14091411
- checkout
14101412
- attach_workspace:
@@ -1414,6 +1416,10 @@ jobs:
14141416

14151417
b_bytecode_osx:
14161418
<<: *base_osx
1419+
environment:
1420+
TERM: xterm
1421+
MAKEFLAGS: -j 5
1422+
LC_ALL: C
14171423
steps:
14181424
- checkout
14191425
- attach_workspace:
@@ -1449,6 +1455,7 @@ jobs:
14491455
<<: *base_node_small
14501456
environment:
14511457
SOLC_EMSCRIPTEN: "On"
1458+
LC_ALL: C
14521459
steps:
14531460
- checkout
14541461
- attach_workspace:

scripts/bytecodecompare/storebytecode.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ REPO_ROOT=$(pwd) # make it absolute
3535

3636
BUILD_DIR="${1:-${REPO_ROOT}/build}"
3737

38+
# Set locale to C to prevent it from affecting glob sort order.
39+
export LC_ALL=C
40+
3841
echo "Compiling all test contracts into bytecode..."
3942
TMPDIR=$(mktemp -d)
4043
(

scripts/solc-bin/bytecode_reports_for_modified_binaries.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,9 @@ tmp_dir=$(mktemp -d -t bytecode-reports-XXXXXX)
104104
solcjs_dir="$tmp_dir/solcjs"
105105
script_dir="$solidity_dir/scripts"
106106

107+
# Set locale to C to prevent it from affecting glob sort order.
108+
export LC_ALL=C
109+
107110
cd "$tmp_dir"
108111

109112
git clone https://github.com/ethereum/solc-js.git "$solcjs_dir"

0 commit comments

Comments
 (0)