mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
CI: Switch from deprecated circleci/buildpack-deps image to cimg/base
This commit is contained in:
parent
10905ac51d
commit
fe118abb53
@ -356,17 +356,9 @@ defaults:
|
|||||||
TERM: xterm
|
TERM: xterm
|
||||||
MAKEFLAGS: -j 10
|
MAKEFLAGS: -j 10
|
||||||
|
|
||||||
- base_buildpack_focal_small: &base_buildpack_focal_small
|
- base_cimg_small: &base_cimg_small
|
||||||
docker:
|
docker:
|
||||||
- image: buildpack-deps:focal
|
- image: cimg/base:current
|
||||||
resource_class: small
|
|
||||||
environment:
|
|
||||||
TERM: xterm
|
|
||||||
MAKEFLAGS: -j 2
|
|
||||||
|
|
||||||
- base_buildpack_latest_small: &base_buildpack_latest_small
|
|
||||||
docker:
|
|
||||||
- image: buildpack-deps:latest
|
|
||||||
resource_class: small
|
resource_class: small
|
||||||
environment:
|
environment:
|
||||||
TERM: xterm
|
TERM: xterm
|
||||||
@ -681,12 +673,14 @@ jobs:
|
|||||||
- gitter_notify_failure_unless_pr
|
- gitter_notify_failure_unless_pr
|
||||||
|
|
||||||
chk_coding_style:
|
chk_coding_style:
|
||||||
<<: *base_buildpack_focal_small
|
<<: *base_cimg_small
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
- run:
|
- run:
|
||||||
name: Install shellcheck
|
name: Install shellcheck
|
||||||
command: apt -q update && apt install -y shellcheck
|
command: |
|
||||||
|
sudo apt -q update
|
||||||
|
sudo apt install -y shellcheck
|
||||||
- run:
|
- run:
|
||||||
name: Check for C++ coding style
|
name: Check for C++ coding style
|
||||||
command: ./scripts/check_style.sh
|
command: ./scripts/check_style.sh
|
||||||
@ -708,12 +702,14 @@ jobs:
|
|||||||
- gitter_notify_failure_unless_pr
|
- gitter_notify_failure_unless_pr
|
||||||
|
|
||||||
chk_pylint:
|
chk_pylint:
|
||||||
<<: *base_buildpack_focal_small
|
<<: *base_cimg_small
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
- run:
|
- run:
|
||||||
name: Install pip
|
name: Install pip
|
||||||
command: apt -q update && apt install -y python3-pip
|
command: |
|
||||||
|
sudo apt -q update
|
||||||
|
sudo apt install -y python3-pip
|
||||||
- run:
|
- run:
|
||||||
name: Install pylint and dependencies of the scripts that will be linted
|
name: Install pylint and dependencies of the scripts that will be linted
|
||||||
command: python3 -m pip install
|
command: python3 -m pip install
|
||||||
@ -732,12 +728,14 @@ jobs:
|
|||||||
- gitter_notify_failure_unless_pr
|
- gitter_notify_failure_unless_pr
|
||||||
|
|
||||||
chk_antlr_grammar:
|
chk_antlr_grammar:
|
||||||
<<: *base_buildpack_focal_small
|
<<: *base_cimg_small
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
- run:
|
- run:
|
||||||
name: Install Java
|
name: Install Java
|
||||||
command: apt -q update && apt install -y openjdk-16-jdk
|
command: |
|
||||||
|
sudo apt -q update
|
||||||
|
sudo apt install -y openjdk-16-jdk
|
||||||
- run:
|
- run:
|
||||||
name: Run tests
|
name: Run tests
|
||||||
command: ./scripts/test_antlr_grammar.sh
|
command: ./scripts/test_antlr_grammar.sh
|
||||||
@ -759,14 +757,14 @@ jobs:
|
|||||||
- gitter_notify_failure_unless_pr
|
- gitter_notify_failure_unless_pr
|
||||||
|
|
||||||
chk_proofs:
|
chk_proofs:
|
||||||
<<: *base_buildpack_latest_small
|
<<: *base_cimg_small
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
- run:
|
- run:
|
||||||
name: Z3 python deps
|
name: Z3 python deps
|
||||||
command: |
|
command: |
|
||||||
apt-get -qq update
|
sudo apt-get -qq update
|
||||||
apt-get -qy install python3-pip
|
sudo apt-get -qy install python3-pip
|
||||||
pip3 install --user z3-solver
|
pip3 install --user z3-solver
|
||||||
- run: *run_proofs
|
- run: *run_proofs
|
||||||
- gitter_notify_failure_unless_pr
|
- gitter_notify_failure_unless_pr
|
||||||
@ -1405,6 +1403,10 @@ jobs:
|
|||||||
|
|
||||||
b_bytecode_ubu:
|
b_bytecode_ubu:
|
||||||
<<: *base_ubuntu2004_small
|
<<: *base_ubuntu2004_small
|
||||||
|
environment:
|
||||||
|
TERM: xterm
|
||||||
|
MAKEFLAGS: -j 2
|
||||||
|
LC_ALL: C
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
- attach_workspace:
|
- attach_workspace:
|
||||||
@ -1414,6 +1416,10 @@ jobs:
|
|||||||
|
|
||||||
b_bytecode_osx:
|
b_bytecode_osx:
|
||||||
<<: *base_osx
|
<<: *base_osx
|
||||||
|
environment:
|
||||||
|
TERM: xterm
|
||||||
|
MAKEFLAGS: -j 5
|
||||||
|
LC_ALL: C
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
- attach_workspace:
|
- attach_workspace:
|
||||||
@ -1449,6 +1455,7 @@ jobs:
|
|||||||
<<: *base_node_small
|
<<: *base_node_small
|
||||||
environment:
|
environment:
|
||||||
SOLC_EMSCRIPTEN: "On"
|
SOLC_EMSCRIPTEN: "On"
|
||||||
|
LC_ALL: C
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
- attach_workspace:
|
- attach_workspace:
|
||||||
|
@ -35,6 +35,9 @@ REPO_ROOT=$(pwd) # make it absolute
|
|||||||
|
|
||||||
BUILD_DIR="${1:-${REPO_ROOT}/build}"
|
BUILD_DIR="${1:-${REPO_ROOT}/build}"
|
||||||
|
|
||||||
|
# Set locale to C to prevent it from affecting glob sort order.
|
||||||
|
export LC_ALL=C
|
||||||
|
|
||||||
echo "Compiling all test contracts into bytecode..."
|
echo "Compiling all test contracts into bytecode..."
|
||||||
TMPDIR=$(mktemp -d)
|
TMPDIR=$(mktemp -d)
|
||||||
(
|
(
|
||||||
|
@ -104,6 +104,9 @@ tmp_dir=$(mktemp -d -t bytecode-reports-XXXXXX)
|
|||||||
solcjs_dir="$tmp_dir/solcjs"
|
solcjs_dir="$tmp_dir/solcjs"
|
||||||
script_dir="$solidity_dir/scripts"
|
script_dir="$solidity_dir/scripts"
|
||||||
|
|
||||||
|
# Set locale to C to prevent it from affecting glob sort order.
|
||||||
|
export LC_ALL=C
|
||||||
|
|
||||||
cd "$tmp_dir"
|
cd "$tmp_dir"
|
||||||
|
|
||||||
git clone https://github.com/ethereum/solc-js.git "$solcjs_dir"
|
git clone https://github.com/ethereum/solc-js.git "$solcjs_dir"
|
||||||
|
Loading…
Reference in New Issue
Block a user