mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Merge pull request #12173 from ethereum/circleci-base-dicts
[CI] Base image templates
This commit is contained in:
commit
696964d2b3
@ -170,7 +170,7 @@ defaults:
|
|||||||
destination: test_results/
|
destination: test_results/
|
||||||
|
|
||||||
# --------------------------------------------------------------------------
|
# --------------------------------------------------------------------------
|
||||||
# Tests Templates
|
# Step Templates
|
||||||
|
|
||||||
# store_test_results helper
|
# store_test_results helper
|
||||||
- store_test_results: &store_test_results
|
- store_test_results: &store_test_results
|
||||||
@ -181,6 +181,9 @@ defaults:
|
|||||||
- checkout
|
- checkout
|
||||||
- attach_workspace:
|
- attach_workspace:
|
||||||
at: build
|
at: build
|
||||||
|
# NOTE: Different build jobs produce different soltest executables (release/debug,
|
||||||
|
# clang/gcc, windows/linux/macos, etc.). The executable used by these steps comes from the
|
||||||
|
# attached workspace and we only see the items added to the workspace by jobs we depend on.
|
||||||
- run: *run_soltest
|
- run: *run_soltest
|
||||||
- store_test_results: *store_test_results
|
- store_test_results: *store_test_results
|
||||||
- store_artifacts: *artifacts_test_results
|
- store_artifacts: *artifacts_test_results
|
||||||
@ -203,30 +206,99 @@ defaults:
|
|||||||
- store_test_results: *store_test_results
|
- store_test_results: *store_test_results
|
||||||
- store_artifacts: *artifacts_test_results
|
- store_artifacts: *artifacts_test_results
|
||||||
|
|
||||||
- test_ubuntu1604_clang: &test_ubuntu1604_clang
|
# --------------------------------------------------------------------------
|
||||||
|
# Base Image Templates
|
||||||
|
|
||||||
|
- base_ubuntu1604_clang: &base_ubuntu1604_clang
|
||||||
docker:
|
docker:
|
||||||
- image: << pipeline.parameters.ubuntu-1604-clang-ossfuzz-docker-image >>
|
- image: << pipeline.parameters.ubuntu-1604-clang-ossfuzz-docker-image >>
|
||||||
<<: *steps_soltest
|
environment:
|
||||||
|
TERM: xterm
|
||||||
|
|
||||||
- test_ubuntu2004_clang: &test_ubuntu2004_clang
|
- base_ubuntu2004_clang: &base_ubuntu2004_clang
|
||||||
docker:
|
docker:
|
||||||
- image: << pipeline.parameters.ubuntu-2004-clang-docker-image >>
|
- image: << pipeline.parameters.ubuntu-2004-clang-docker-image >>
|
||||||
<<: *steps_soltest
|
environment:
|
||||||
|
TERM: xterm
|
||||||
|
CC: clang
|
||||||
|
CXX: clang++
|
||||||
|
MAKEFLAGS: -j 3
|
||||||
|
|
||||||
- test_ubuntu2004: &test_ubuntu2004
|
- base_ubuntu2004_clang_xlarge: &base_ubuntu2004_clang_xlarge
|
||||||
|
<<: *base_ubuntu2004_clang
|
||||||
|
resource_class: xlarge
|
||||||
|
environment:
|
||||||
|
TERM: xterm
|
||||||
|
CC: clang
|
||||||
|
CXX: clang++
|
||||||
|
MAKEFLAGS: -j 10
|
||||||
|
|
||||||
|
- base_ubuntu2004: &base_ubuntu2004
|
||||||
docker:
|
docker:
|
||||||
- image: << pipeline.parameters.ubuntu-2004-docker-image >>
|
- image: << pipeline.parameters.ubuntu-2004-docker-image >>
|
||||||
parallelism: 6
|
environment:
|
||||||
<<: *steps_soltest_all
|
TERM: xterm
|
||||||
|
|
||||||
- test_asan: &test_asan
|
- base_ubuntu2004_xlarge: &base_ubuntu2004_xlarge
|
||||||
<<: *test_ubuntu2004
|
<<: *base_ubuntu2004
|
||||||
<<: *steps_soltest
|
resource_class: xlarge
|
||||||
|
environment:
|
||||||
|
TERM: xterm
|
||||||
|
MAKEFLAGS: -j 10
|
||||||
|
|
||||||
- test_ubuntu2004_clang_cli: &test_ubuntu2004_clang_cli
|
- base_buildpack_focal: &base_buildpack_focal
|
||||||
docker:
|
docker:
|
||||||
- image: << pipeline.parameters.ubuntu-2004-clang-docker-image >>
|
- image: buildpack-deps:focal
|
||||||
<<: *steps_cmdline_tests
|
environment:
|
||||||
|
TERM: xterm
|
||||||
|
|
||||||
|
- base_buildpack_latest: &base_buildpack_latest
|
||||||
|
docker:
|
||||||
|
- image: buildpack-deps:latest
|
||||||
|
environment:
|
||||||
|
TERM: xterm
|
||||||
|
|
||||||
|
- base_archlinux: &base_archlinux
|
||||||
|
docker:
|
||||||
|
- image: archlinux:base
|
||||||
|
environment:
|
||||||
|
TERM: xterm
|
||||||
|
|
||||||
|
- base_win_powershell: &base_win_powershell
|
||||||
|
executor:
|
||||||
|
name: win/default
|
||||||
|
shell: powershell.exe
|
||||||
|
|
||||||
|
- base_win_cmd: &base_win_cmd
|
||||||
|
executor:
|
||||||
|
name: win/default
|
||||||
|
shell: cmd.exe
|
||||||
|
|
||||||
|
- base_osx: &base_osx
|
||||||
|
macos:
|
||||||
|
xcode: "11.0.0"
|
||||||
|
environment:
|
||||||
|
TERM: xterm
|
||||||
|
|
||||||
|
- base_ems_xlarge: &base_ems_xlarge
|
||||||
|
docker:
|
||||||
|
- image: << pipeline.parameters.emscripten-docker-image >>
|
||||||
|
resource_class: xlarge
|
||||||
|
environment:
|
||||||
|
TERM: xterm
|
||||||
|
MAKEFLAGS: -j 10
|
||||||
|
|
||||||
|
- base_python: &base_python
|
||||||
|
docker:
|
||||||
|
- image: circleci/python:3.6
|
||||||
|
environment:
|
||||||
|
TERM: xterm
|
||||||
|
|
||||||
|
- base_node_latest: &base_node_latest
|
||||||
|
docker:
|
||||||
|
- image: circleci/node
|
||||||
|
environment:
|
||||||
|
TERM: xterm
|
||||||
|
|
||||||
# --------------------------------------------------------------------------
|
# --------------------------------------------------------------------------
|
||||||
# Workflow Templates
|
# Workflow Templates
|
||||||
@ -310,10 +382,7 @@ defaults:
|
|||||||
jobs:
|
jobs:
|
||||||
|
|
||||||
chk_spelling:
|
chk_spelling:
|
||||||
docker:
|
<<: *base_python
|
||||||
- image: circleci/python:3.6
|
|
||||||
environment:
|
|
||||||
TERM: xterm
|
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
- attach_workspace:
|
- attach_workspace:
|
||||||
@ -327,10 +396,7 @@ jobs:
|
|||||||
command: ~/.local/bin/codespell -S "*.enc,.git,Dockerfile*" -I ./scripts/codespell_whitelist.txt
|
command: ~/.local/bin/codespell -S "*.enc,.git,Dockerfile*" -I ./scripts/codespell_whitelist.txt
|
||||||
|
|
||||||
chk_docs_examples:
|
chk_docs_examples:
|
||||||
docker:
|
<<: *base_node_latest
|
||||||
- image: circleci/node
|
|
||||||
environment:
|
|
||||||
TERM: xterm
|
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
- attach_workspace:
|
- attach_workspace:
|
||||||
@ -343,8 +409,7 @@ jobs:
|
|||||||
command: ./test/docsCodeStyle.sh
|
command: ./test/docsCodeStyle.sh
|
||||||
|
|
||||||
chk_coding_style:
|
chk_coding_style:
|
||||||
docker:
|
<<: *base_buildpack_focal
|
||||||
- image: buildpack-deps:focal
|
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
- run:
|
- run:
|
||||||
@ -361,8 +426,7 @@ jobs:
|
|||||||
command: ./scripts/check_symlinks.sh
|
command: ./scripts/check_symlinks.sh
|
||||||
|
|
||||||
chk_errorcodes:
|
chk_errorcodes:
|
||||||
docker:
|
<<: *base_python
|
||||||
- image: circleci/python:3.6
|
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
- run:
|
- run:
|
||||||
@ -370,8 +434,7 @@ jobs:
|
|||||||
command: ./scripts/error_codes.py --check
|
command: ./scripts/error_codes.py --check
|
||||||
|
|
||||||
chk_pylint:
|
chk_pylint:
|
||||||
docker:
|
<<: *base_buildpack_focal
|
||||||
- image: buildpack-deps:focal
|
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
- run:
|
- run:
|
||||||
@ -386,8 +449,7 @@ jobs:
|
|||||||
command: ./scripts/pylint_all.py
|
command: ./scripts/pylint_all.py
|
||||||
|
|
||||||
chk_antlr_grammar:
|
chk_antlr_grammar:
|
||||||
docker:
|
<<: *base_buildpack_focal
|
||||||
- image: buildpack-deps:focal
|
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
- run:
|
- run:
|
||||||
@ -398,10 +460,7 @@ jobs:
|
|||||||
command: ./scripts/test_antlr_grammar.sh
|
command: ./scripts/test_antlr_grammar.sh
|
||||||
|
|
||||||
chk_buglist:
|
chk_buglist:
|
||||||
docker:
|
<<: *base_node_latest
|
||||||
- image: circleci/node
|
|
||||||
environment:
|
|
||||||
TERM: xterm
|
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
- run:
|
- run:
|
||||||
@ -415,10 +474,7 @@ jobs:
|
|||||||
command: ./test/buglistTests.js
|
command: ./test/buglistTests.js
|
||||||
|
|
||||||
chk_proofs:
|
chk_proofs:
|
||||||
docker:
|
<<: *base_buildpack_latest
|
||||||
- image: buildpack-deps:latest
|
|
||||||
environment:
|
|
||||||
TERM: xterm
|
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
- run:
|
- run:
|
||||||
@ -430,27 +486,21 @@ jobs:
|
|||||||
- run: *run_proofs
|
- run: *run_proofs
|
||||||
|
|
||||||
chk_docs_pragma_min_version:
|
chk_docs_pragma_min_version:
|
||||||
docker:
|
<<: *base_ubuntu2004
|
||||||
- image: << pipeline.parameters.ubuntu-2004-docker-image >>
|
|
||||||
environment:
|
|
||||||
TERM: xterm
|
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
- run: *run_docs_pragma_min_version
|
- run: *run_docs_pragma_min_version
|
||||||
|
|
||||||
t_pyscripts_ubu:
|
t_ubu_pyscripts:
|
||||||
docker:
|
<<: *base_ubuntu2004
|
||||||
- image: << pipeline.parameters.ubuntu-2004-docker-image >>
|
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
- run:
|
- run:
|
||||||
name: Python unit tests
|
name: Python unit tests
|
||||||
command: python3 test/pyscriptTests.py
|
command: python3 test/pyscriptTests.py
|
||||||
|
|
||||||
t_pyscripts_win:
|
t_win_pyscripts:
|
||||||
executor:
|
<<: *base_win_powershell
|
||||||
name: win/default
|
|
||||||
shell: powershell.exe
|
|
||||||
steps:
|
steps:
|
||||||
- run: git config --global core.autocrlf false
|
- run: git config --global core.autocrlf false
|
||||||
- checkout
|
- checkout
|
||||||
@ -459,11 +509,7 @@ jobs:
|
|||||||
command: python.exe test/pyscriptTests.py
|
command: python.exe test/pyscriptTests.py
|
||||||
|
|
||||||
b_ubu: &b_ubu
|
b_ubu: &b_ubu
|
||||||
resource_class: xlarge
|
<<: *base_ubuntu2004_xlarge
|
||||||
docker:
|
|
||||||
- image: << pipeline.parameters.ubuntu-2004-docker-image >>
|
|
||||||
environment:
|
|
||||||
MAKEFLAGS: -j 10
|
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
- run: *run_build
|
- run: *run_build
|
||||||
@ -474,7 +520,7 @@ jobs:
|
|||||||
|
|
||||||
# x64 ASAN build, for testing for memory related bugs
|
# x64 ASAN build, for testing for memory related bugs
|
||||||
b_ubu_asan: &b_ubu_asan
|
b_ubu_asan: &b_ubu_asan
|
||||||
<<: *b_ubu
|
<<: *base_ubuntu2004_xlarge
|
||||||
environment:
|
environment:
|
||||||
CMAKE_OPTIONS: -DSANITIZE=address
|
CMAKE_OPTIONS: -DSANITIZE=address
|
||||||
MAKEFLAGS: -j 10
|
MAKEFLAGS: -j 10
|
||||||
@ -486,13 +532,7 @@ jobs:
|
|||||||
- persist_to_workspace: *artifacts_executables
|
- persist_to_workspace: *artifacts_executables
|
||||||
|
|
||||||
b_ubu_clang: &b_ubu_clang
|
b_ubu_clang: &b_ubu_clang
|
||||||
resource_class: xlarge
|
<<: *base_ubuntu2004_clang_xlarge
|
||||||
docker:
|
|
||||||
- image: << pipeline.parameters.ubuntu-2004-clang-docker-image >>
|
|
||||||
environment:
|
|
||||||
CC: clang
|
|
||||||
CXX: clang++
|
|
||||||
MAKEFLAGS: -j 10
|
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
- run: *run_build
|
- run: *run_build
|
||||||
@ -500,8 +540,7 @@ jobs:
|
|||||||
- persist_to_workspace: *artifacts_executables
|
- persist_to_workspace: *artifacts_executables
|
||||||
|
|
||||||
b_ubu_asan_clang: &b_ubu_asan_clang
|
b_ubu_asan_clang: &b_ubu_asan_clang
|
||||||
docker:
|
<<: *base_ubuntu2004_clang
|
||||||
- image: << pipeline.parameters.ubuntu-2004-clang-docker-image >>
|
|
||||||
environment:
|
environment:
|
||||||
CC: clang
|
CC: clang
|
||||||
CXX: clang++
|
CXX: clang++
|
||||||
@ -514,8 +553,7 @@ jobs:
|
|||||||
- persist_to_workspace: *artifacts_executables
|
- persist_to_workspace: *artifacts_executables
|
||||||
|
|
||||||
b_ubu_ubsan_clang: &b_ubu_ubsan_clang
|
b_ubu_ubsan_clang: &b_ubu_ubsan_clang
|
||||||
docker:
|
<<: *base_ubuntu2004_clang
|
||||||
- image: << pipeline.parameters.ubuntu-2004-clang-docker-image >>
|
|
||||||
environment:
|
environment:
|
||||||
CC: clang
|
CC: clang
|
||||||
CXX: clang++
|
CXX: clang++
|
||||||
@ -535,7 +573,7 @@ jobs:
|
|||||||
MAKEFLAGS: -j 10
|
MAKEFLAGS: -j 10
|
||||||
|
|
||||||
b_ubu_static:
|
b_ubu_static:
|
||||||
<<: *b_ubu
|
<<: *base_ubuntu2004_xlarge
|
||||||
environment:
|
environment:
|
||||||
MAKEFLAGS: -j 10
|
MAKEFLAGS: -j 10
|
||||||
CMAKE_OPTIONS: -DCMAKE_BUILD_TYPE=Release -DUSE_Z3_DLOPEN=ON -DUSE_CVC4=OFF -DSOLC_STATIC_STDLIBS=ON
|
CMAKE_OPTIONS: -DCMAKE_BUILD_TYPE=Release -DUSE_Z3_DLOPEN=ON -DUSE_CVC4=OFF -DSOLC_STATIC_STDLIBS=ON
|
||||||
@ -548,7 +586,7 @@ jobs:
|
|||||||
- store_artifacts: *artifacts_solc
|
- store_artifacts: *artifacts_solc
|
||||||
|
|
||||||
b_ubu_codecov:
|
b_ubu_codecov:
|
||||||
<<: *b_ubu
|
<<: *base_ubuntu2004_xlarge
|
||||||
environment:
|
environment:
|
||||||
COVERAGE: ON
|
COVERAGE: ON
|
||||||
CMAKE_BUILD_TYPE: Debug
|
CMAKE_BUILD_TYPE: Debug
|
||||||
@ -559,7 +597,8 @@ jobs:
|
|||||||
- persist_to_workspace: *artifacts_executables
|
- persist_to_workspace: *artifacts_executables
|
||||||
|
|
||||||
t_ubu_codecov:
|
t_ubu_codecov:
|
||||||
<<: *test_ubuntu2004
|
<<: *base_ubuntu2004
|
||||||
|
parallelism: 6
|
||||||
environment:
|
environment:
|
||||||
EVM: << pipeline.parameters.evm-version >>
|
EVM: << pipeline.parameters.evm-version >>
|
||||||
OPTIMIZE: 1
|
OPTIMIZE: 1
|
||||||
@ -582,7 +621,7 @@ jobs:
|
|||||||
# Builds in C++20 mode and uses debug build in order to speed up.
|
# Builds in C++20 mode and uses debug build in order to speed up.
|
||||||
# Do *NOT* store any artifacts or workspace as we don't run tests on this build.
|
# Do *NOT* store any artifacts or workspace as we don't run tests on this build.
|
||||||
b_ubu_cxx20:
|
b_ubu_cxx20:
|
||||||
<<: *b_ubu
|
<<: *base_ubuntu2004_xlarge
|
||||||
environment:
|
environment:
|
||||||
CMAKE_BUILD_TYPE: Debug
|
CMAKE_BUILD_TYPE: Debug
|
||||||
CMAKE_OPTIONS: -DCMAKE_CXX_STANDARD=20 -DUSE_CVC4=OFF
|
CMAKE_OPTIONS: -DCMAKE_CXX_STANDARD=20 -DUSE_CVC4=OFF
|
||||||
@ -592,13 +631,7 @@ jobs:
|
|||||||
- run: *run_build
|
- run: *run_build
|
||||||
|
|
||||||
b_ubu_ossfuzz: &b_ubu_ossfuzz
|
b_ubu_ossfuzz: &b_ubu_ossfuzz
|
||||||
docker:
|
<<: *base_ubuntu1604_clang
|
||||||
- image: << pipeline.parameters.ubuntu-1604-clang-ossfuzz-docker-image >>
|
|
||||||
environment:
|
|
||||||
CC: clang
|
|
||||||
CXX: clang++
|
|
||||||
TERM: xterm
|
|
||||||
MAKEFLAGS: -j 3
|
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
- run: *setup_prerelease_commit_hash
|
- run: *setup_prerelease_commit_hash
|
||||||
@ -606,7 +639,7 @@ jobs:
|
|||||||
- persist_to_workspace: *artifacts_executables_ossfuzz
|
- persist_to_workspace: *artifacts_executables_ossfuzz
|
||||||
|
|
||||||
t_ubu_ossfuzz: &t_ubu_ossfuzz
|
t_ubu_ossfuzz: &t_ubu_ossfuzz
|
||||||
<<: *test_ubuntu1604_clang
|
<<: *base_ubuntu1604_clang
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
- attach_workspace:
|
- attach_workspace:
|
||||||
@ -623,8 +656,7 @@ jobs:
|
|||||||
- store_artifacts: *artifacts_test_results
|
- store_artifacts: *artifacts_test_results
|
||||||
|
|
||||||
b_archlinux:
|
b_archlinux:
|
||||||
docker:
|
<<: *base_archlinux
|
||||||
- image: archlinux:base
|
|
||||||
environment:
|
environment:
|
||||||
TERM: xterm
|
TERM: xterm
|
||||||
MAKEFLAGS: -j 3
|
MAKEFLAGS: -j 3
|
||||||
@ -639,8 +671,7 @@ jobs:
|
|||||||
- persist_to_workspace: *artifacts_executables
|
- persist_to_workspace: *artifacts_executables
|
||||||
|
|
||||||
b_osx:
|
b_osx:
|
||||||
macos:
|
<<: *base_osx
|
||||||
xcode: "11.0.0"
|
|
||||||
environment:
|
environment:
|
||||||
TERM: xterm
|
TERM: xterm
|
||||||
CMAKE_BUILD_TYPE: Release
|
CMAKE_BUILD_TYPE: Release
|
||||||
@ -676,8 +707,7 @@ jobs:
|
|||||||
- build/test/tools/solfuzzer
|
- build/test/tools/solfuzzer
|
||||||
|
|
||||||
t_osx_soltest:
|
t_osx_soltest:
|
||||||
macos:
|
<<: *base_osx
|
||||||
xcode: "11.0.0"
|
|
||||||
environment:
|
environment:
|
||||||
EVM: << pipeline.parameters.evm-version >>
|
EVM: << pipeline.parameters.evm-version >>
|
||||||
OPTIMIZE: 0
|
OPTIMIZE: 0
|
||||||
@ -694,10 +724,7 @@ jobs:
|
|||||||
- store_artifacts: *artifacts_test_results
|
- store_artifacts: *artifacts_test_results
|
||||||
|
|
||||||
t_osx_cli:
|
t_osx_cli:
|
||||||
macos:
|
<<: *base_osx
|
||||||
xcode: "11.0.0"
|
|
||||||
environment:
|
|
||||||
TERM: xterm
|
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
- restore_cache:
|
- restore_cache:
|
||||||
@ -709,12 +736,7 @@ jobs:
|
|||||||
- store_artifacts: *artifacts_test_results
|
- store_artifacts: *artifacts_test_results
|
||||||
|
|
||||||
b_ems:
|
b_ems:
|
||||||
resource_class: xlarge
|
<<: *base_ems_xlarge
|
||||||
docker:
|
|
||||||
- image: << pipeline.parameters.emscripten-docker-image >>
|
|
||||||
environment:
|
|
||||||
MAKEFLAGS: -j 10
|
|
||||||
TERM: xterm
|
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
- run:
|
- run:
|
||||||
@ -734,8 +756,7 @@ jobs:
|
|||||||
- version.txt
|
- version.txt
|
||||||
|
|
||||||
b_docs:
|
b_docs:
|
||||||
docker:
|
<<: *base_ubuntu2004
|
||||||
- image: << pipeline.parameters.ubuntu-2004-docker-image >>
|
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
- run: *setup_prerelease_commit_hash
|
- run: *setup_prerelease_commit_hash
|
||||||
@ -746,12 +767,13 @@ jobs:
|
|||||||
path: docs/_build/html/
|
path: docs/_build/html/
|
||||||
destination: docs-html
|
destination: docs-html
|
||||||
|
|
||||||
t_ubu_soltest: &t_ubu_soltest
|
t_ubu_soltest_all: &t_ubu_soltest_all
|
||||||
<<: *test_ubuntu2004
|
<<: *base_ubuntu2004
|
||||||
|
parallelism: 6
|
||||||
|
<<: *steps_soltest_all
|
||||||
|
|
||||||
t_archlinux_soltest: &t_archlinux_soltest
|
t_archlinux_soltest: &t_archlinux_soltest
|
||||||
docker:
|
<<: *base_archlinux
|
||||||
- image: archlinux:base
|
|
||||||
environment:
|
environment:
|
||||||
EVM: << pipeline.parameters.evm-version >>
|
EVM: << pipeline.parameters.evm-version >>
|
||||||
OPTIMIZE: 0
|
OPTIMIZE: 0
|
||||||
@ -769,8 +791,7 @@ jobs:
|
|||||||
<<: *steps_soltest
|
<<: *steps_soltest
|
||||||
|
|
||||||
t_ubu_soltest_enforce_yul: &t_ubu_soltest_enforce_yul
|
t_ubu_soltest_enforce_yul: &t_ubu_soltest_enforce_yul
|
||||||
docker:
|
<<: *base_ubuntu2004
|
||||||
- image: << pipeline.parameters.ubuntu-2004-docker-image >>
|
|
||||||
environment:
|
environment:
|
||||||
EVM: << pipeline.parameters.evm-version >>
|
EVM: << pipeline.parameters.evm-version >>
|
||||||
SOLTEST_FLAGS: --enforce-via-yul
|
SOLTEST_FLAGS: --enforce-via-yul
|
||||||
@ -778,54 +799,55 @@ jobs:
|
|||||||
TERM: xterm
|
TERM: xterm
|
||||||
<<: *steps_soltest
|
<<: *steps_soltest
|
||||||
|
|
||||||
|
|
||||||
t_ubu_clang_soltest: &t_ubu_clang_soltest
|
t_ubu_clang_soltest: &t_ubu_clang_soltest
|
||||||
<<: *test_ubuntu2004_clang
|
<<: *base_ubuntu2004_clang
|
||||||
environment:
|
environment:
|
||||||
EVM: << pipeline.parameters.evm-version >>
|
EVM: << pipeline.parameters.evm-version >>
|
||||||
OPTIMIZE: 0
|
OPTIMIZE: 0
|
||||||
|
<<: *steps_soltest
|
||||||
|
|
||||||
t_ubu_release_soltest: &t_ubu_release_soltest
|
t_ubu_release_soltest_all: &t_ubu_release_soltest_all
|
||||||
<<: *t_ubu_soltest
|
# NOTE: This definition is identical to t_ubu_soltest_all but in the workflow we make it depend on
|
||||||
|
# a different job (b_ubu_release) so the workspace it attaches contains a different executable.
|
||||||
|
<<: *t_ubu_soltest_all
|
||||||
|
|
||||||
t_ubu_cli: &t_ubu_cli
|
t_ubu_cli: &t_ubu_cli
|
||||||
docker:
|
<<: *base_ubuntu2004
|
||||||
- image: << pipeline.parameters.ubuntu-2004-docker-image >>
|
|
||||||
environment:
|
|
||||||
TERM: xterm
|
|
||||||
<<: *steps_cmdline_tests
|
<<: *steps_cmdline_tests
|
||||||
|
|
||||||
t_ubu_release_cli: &t_ubu_release_cli
|
t_ubu_release_cli: &t_ubu_release_cli
|
||||||
<<: *t_ubu_cli
|
<<: *t_ubu_cli
|
||||||
|
|
||||||
t_ubu_asan_cli:
|
t_ubu_asan_cli:
|
||||||
<<: *t_ubu_cli
|
<<: *base_ubuntu2004
|
||||||
environment:
|
environment:
|
||||||
TERM: xterm
|
TERM: xterm
|
||||||
ASAN_OPTIONS: check_initialization_order=true:detect_stack_use_after_return=true:strict_init_order=true:strict_string_checks=true:detect_invalid_pointer_pairs=2
|
ASAN_OPTIONS: check_initialization_order=true:detect_stack_use_after_return=true:strict_init_order=true:strict_string_checks=true:detect_invalid_pointer_pairs=2
|
||||||
<<: *steps_cmdline_tests
|
<<: *steps_cmdline_tests
|
||||||
|
|
||||||
t_ubu_asan:
|
t_ubu_asan_soltest:
|
||||||
<<: *test_asan
|
<<: *base_ubuntu2004
|
||||||
|
parallelism: 6
|
||||||
environment:
|
environment:
|
||||||
EVM: << pipeline.parameters.evm-version >>
|
EVM: << pipeline.parameters.evm-version >>
|
||||||
OPTIMIZE: 0
|
OPTIMIZE: 0
|
||||||
SOLTEST_FLAGS: --no-smt
|
SOLTEST_FLAGS: --no-smt
|
||||||
ASAN_OPTIONS: check_initialization_order=true:detect_stack_use_after_return=true:strict_init_order=true:strict_string_checks=true:detect_invalid_pointer_pairs=2
|
ASAN_OPTIONS: check_initialization_order=true:detect_stack_use_after_return=true:strict_init_order=true:strict_string_checks=true:detect_invalid_pointer_pairs=2
|
||||||
|
<<: *steps_soltest
|
||||||
|
|
||||||
t_ubu_asan_clang:
|
t_ubu_asan_clang_soltest:
|
||||||
<<: *test_ubuntu2004_clang
|
<<: *base_ubuntu2004_clang
|
||||||
environment:
|
environment:
|
||||||
EVM: << pipeline.parameters.evm-version >>
|
EVM: << pipeline.parameters.evm-version >>
|
||||||
OPTIMIZE: 0
|
OPTIMIZE: 0
|
||||||
SOLTEST_FLAGS: --no-smt
|
SOLTEST_FLAGS: --no-smt
|
||||||
ASAN_OPTIONS: check_initialization_order=true:detect_stack_use_after_return=true:strict_init_order=true:strict_string_checks=true:detect_invalid_pointer_pairs=2
|
ASAN_OPTIONS: check_initialization_order=true:detect_stack_use_after_return=true:strict_init_order=true:strict_string_checks=true:detect_invalid_pointer_pairs=2
|
||||||
|
<<: *steps_soltest
|
||||||
|
|
||||||
t_ubu_ubsan_clang:
|
t_ubu_ubsan_clang_soltest:
|
||||||
|
<<: *base_ubuntu2004_clang
|
||||||
environment:
|
environment:
|
||||||
EVM: << pipeline.parameters.evm-version >>
|
EVM: << pipeline.parameters.evm-version >>
|
||||||
docker:
|
|
||||||
- image: << pipeline.parameters.ubuntu-2004-clang-docker-image >>
|
|
||||||
steps:
|
steps:
|
||||||
- when:
|
- when:
|
||||||
condition: true
|
condition: true
|
||||||
@ -833,8 +855,7 @@ jobs:
|
|||||||
- gitter_notify_failure
|
- gitter_notify_failure
|
||||||
|
|
||||||
t_ubu_ubsan_clang_cli:
|
t_ubu_ubsan_clang_cli:
|
||||||
docker:
|
<<: *base_ubuntu2004_clang
|
||||||
- image: << pipeline.parameters.ubuntu-2004-clang-docker-image >>
|
|
||||||
steps:
|
steps:
|
||||||
- when:
|
- when:
|
||||||
condition: true
|
condition: true
|
||||||
@ -842,10 +863,7 @@ jobs:
|
|||||||
- gitter_notify_failure
|
- gitter_notify_failure
|
||||||
|
|
||||||
t_ems_solcjs:
|
t_ems_solcjs:
|
||||||
docker:
|
<<: *base_ubuntu2004
|
||||||
- image: << pipeline.parameters.ubuntu-2004-docker-image >>
|
|
||||||
environment:
|
|
||||||
TERM: xterm
|
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
- attach_workspace:
|
- attach_workspace:
|
||||||
@ -864,8 +882,7 @@ jobs:
|
|||||||
test/externalTests/solc-js/solc-js.sh /tmp/workspace/soljson.js $(cat /tmp/workspace/version.txt)
|
test/externalTests/solc-js/solc-js.sh /tmp/workspace/soljson.js $(cat /tmp/workspace/version.txt)
|
||||||
|
|
||||||
t_ems_ext_hardhat:
|
t_ems_ext_hardhat:
|
||||||
docker:
|
<<: *base_node_latest
|
||||||
- image: circleci/node
|
|
||||||
environment:
|
environment:
|
||||||
TERM: xterm
|
TERM: xterm
|
||||||
HARDHAT_TESTS_SOLC_PATH: /tmp/workspace/soljson.js
|
HARDHAT_TESTS_SOLC_PATH: /tmp/workspace/soljson.js
|
||||||
@ -927,9 +944,7 @@ jobs:
|
|||||||
- gitter_notify_success
|
- gitter_notify_success
|
||||||
|
|
||||||
b_win: &b_win
|
b_win: &b_win
|
||||||
executor:
|
<<: *base_win_powershell
|
||||||
name: win/default
|
|
||||||
shell: powershell.exe
|
|
||||||
steps:
|
steps:
|
||||||
# NOTE: Not disabling git's core.autocrlf here because we want to build using the typical Windows config.
|
# NOTE: Not disabling git's core.autocrlf here because we want to build using the typical Windows config.
|
||||||
- checkout
|
- checkout
|
||||||
@ -963,10 +978,8 @@ jobs:
|
|||||||
environment:
|
environment:
|
||||||
FORCE_RELEASE: ON
|
FORCE_RELEASE: ON
|
||||||
|
|
||||||
t_win: &t_win
|
t_win_soltest: &t_win_soltest
|
||||||
executor:
|
<<: *base_win_powershell
|
||||||
name: win/default
|
|
||||||
shell: powershell.exe
|
|
||||||
steps:
|
steps:
|
||||||
# NOTE: Git's default core.autocrlf is fine for running soltest. We get additional coverage
|
# NOTE: Git's default core.autocrlf is fine for running soltest. We get additional coverage
|
||||||
# for files using CRLF that way.
|
# for files using CRLF that way.
|
||||||
@ -982,12 +995,11 @@ jobs:
|
|||||||
- store_test_results: *store_test_results
|
- store_test_results: *store_test_results
|
||||||
- store_artifacts: *artifacts_test_results
|
- store_artifacts: *artifacts_test_results
|
||||||
|
|
||||||
t_win_release:
|
t_win_release_soltest:
|
||||||
<<: *t_win
|
<<: *t_win_soltest
|
||||||
|
|
||||||
b_bytecode_ubu:
|
b_bytecode_ubu:
|
||||||
docker:
|
<<: *base_ubuntu2004
|
||||||
- image: << pipeline.parameters.ubuntu-2004-docker-image >>
|
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
- attach_workspace:
|
- attach_workspace:
|
||||||
@ -1007,10 +1019,7 @@ jobs:
|
|||||||
- bytecode-report-ubuntu-cli.txt
|
- bytecode-report-ubuntu-cli.txt
|
||||||
|
|
||||||
b_bytecode_osx:
|
b_bytecode_osx:
|
||||||
macos:
|
<<: *base_osx
|
||||||
xcode: "11.0.0"
|
|
||||||
environment:
|
|
||||||
TERM: xterm
|
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
- attach_workspace:
|
- attach_workspace:
|
||||||
@ -1030,9 +1039,7 @@ jobs:
|
|||||||
- bytecode-report-osx-cli.txt
|
- bytecode-report-osx-cli.txt
|
||||||
|
|
||||||
b_bytecode_win:
|
b_bytecode_win:
|
||||||
executor:
|
<<: *base_win_cmd
|
||||||
name: win/default
|
|
||||||
shell: cmd.exe
|
|
||||||
steps:
|
steps:
|
||||||
# NOTE: For bytecode generation we need the input files to be byte-for-byte identical on all
|
# NOTE: For bytecode generation we need the input files to be byte-for-byte identical on all
|
||||||
# platforms so line ending conversions must absolutely be disabled.
|
# platforms so line ending conversions must absolutely be disabled.
|
||||||
@ -1055,8 +1062,7 @@ jobs:
|
|||||||
- bytecode-report-windows-cli.txt
|
- bytecode-report-windows-cli.txt
|
||||||
|
|
||||||
b_bytecode_ems:
|
b_bytecode_ems:
|
||||||
docker:
|
<<: *base_node_latest
|
||||||
- image: circleci/node:16
|
|
||||||
environment:
|
environment:
|
||||||
SOLC_EMSCRIPTEN: "On"
|
SOLC_EMSCRIPTEN: "On"
|
||||||
steps:
|
steps:
|
||||||
@ -1072,8 +1078,7 @@ jobs:
|
|||||||
- bytecode-report-emscripten.txt
|
- bytecode-report-emscripten.txt
|
||||||
|
|
||||||
t_bytecode_compare:
|
t_bytecode_compare:
|
||||||
docker:
|
<<: *base_ubuntu2004
|
||||||
- image: << pipeline.parameters.ubuntu-2004-docker-image >>
|
|
||||||
environment:
|
environment:
|
||||||
REPORT_FILES: |
|
REPORT_FILES: |
|
||||||
bytecode-report-emscripten.txt
|
bytecode-report-emscripten.txt
|
||||||
@ -1123,8 +1128,8 @@ workflows:
|
|||||||
- chk_errorcodes: *workflow_trigger_on_tags
|
- chk_errorcodes: *workflow_trigger_on_tags
|
||||||
- chk_antlr_grammar: *workflow_trigger_on_tags
|
- chk_antlr_grammar: *workflow_trigger_on_tags
|
||||||
- chk_docs_pragma_min_version: *workflow_trigger_on_tags
|
- chk_docs_pragma_min_version: *workflow_trigger_on_tags
|
||||||
- t_pyscripts_ubu: *workflow_trigger_on_tags
|
- t_ubu_pyscripts: *workflow_trigger_on_tags
|
||||||
- t_pyscripts_win: *workflow_trigger_on_tags
|
- t_win_pyscripts: *workflow_trigger_on_tags
|
||||||
|
|
||||||
# build-only
|
# build-only
|
||||||
- b_docs: *workflow_trigger_on_tags
|
- b_docs: *workflow_trigger_on_tags
|
||||||
@ -1146,7 +1151,7 @@ workflows:
|
|||||||
# Ubuntu build and tests
|
# Ubuntu build and tests
|
||||||
- b_ubu: *workflow_trigger_on_tags
|
- b_ubu: *workflow_trigger_on_tags
|
||||||
- t_ubu_cli: *workflow_ubuntu2004
|
- t_ubu_cli: *workflow_ubuntu2004
|
||||||
- t_ubu_soltest: *workflow_ubuntu2004
|
- t_ubu_soltest_all: *workflow_ubuntu2004
|
||||||
- t_ubu_soltest_enforce_yul: *workflow_ubuntu2004
|
- t_ubu_soltest_enforce_yul: *workflow_ubuntu2004
|
||||||
- b_ubu_clang: *workflow_trigger_on_tags
|
- b_ubu_clang: *workflow_trigger_on_tags
|
||||||
- t_ubu_clang_soltest: *workflow_ubuntu2004_clang
|
- t_ubu_clang_soltest: *workflow_ubuntu2004_clang
|
||||||
@ -1154,7 +1159,7 @@ workflows:
|
|||||||
# Ubuntu fake release build and tests
|
# Ubuntu fake release build and tests
|
||||||
- b_ubu_release: *workflow_trigger_on_tags
|
- b_ubu_release: *workflow_trigger_on_tags
|
||||||
- t_ubu_release_cli: *workflow_ubuntu2004_release
|
- t_ubu_release_cli: *workflow_ubuntu2004_release
|
||||||
- t_ubu_release_soltest: *workflow_ubuntu2004_release
|
- t_ubu_release_soltest_all: *workflow_ubuntu2004_release
|
||||||
|
|
||||||
# Emscripten build and tests that take 15 minutes or less
|
# Emscripten build and tests that take 15 minutes or less
|
||||||
- b_ems: *workflow_trigger_on_tags
|
- b_ems: *workflow_trigger_on_tags
|
||||||
@ -1217,8 +1222,8 @@ workflows:
|
|||||||
# Windows build and tests
|
# Windows build and tests
|
||||||
- b_win: *workflow_trigger_on_tags
|
- b_win: *workflow_trigger_on_tags
|
||||||
- b_win_release: *workflow_trigger_on_tags
|
- b_win_release: *workflow_trigger_on_tags
|
||||||
- t_win: *workflow_win
|
- t_win_soltest: *workflow_win
|
||||||
- t_win_release: *workflow_win_release
|
- t_win_release_soltest: *workflow_win_release
|
||||||
|
|
||||||
# Bytecode comparison:
|
# Bytecode comparison:
|
||||||
- b_bytecode_ubu:
|
- b_bytecode_ubu:
|
||||||
@ -1262,13 +1267,13 @@ workflows:
|
|||||||
# ASan build and tests
|
# ASan build and tests
|
||||||
- b_ubu_asan: *workflow_trigger_on_tags
|
- b_ubu_asan: *workflow_trigger_on_tags
|
||||||
- b_ubu_asan_clang: *workflow_trigger_on_tags
|
- b_ubu_asan_clang: *workflow_trigger_on_tags
|
||||||
- t_ubu_asan: *workflow_ubuntu2004_asan
|
- t_ubu_asan_soltest: *workflow_ubuntu2004_asan
|
||||||
- t_ubu_asan_clang: *workflow_ubuntu2004_asan_clang
|
- t_ubu_asan_clang_soltest: *workflow_ubuntu2004_asan_clang
|
||||||
- t_ubu_asan_cli: *workflow_ubuntu2004_asan
|
- t_ubu_asan_cli: *workflow_ubuntu2004_asan
|
||||||
|
|
||||||
# UBSan build and tests
|
# UBSan build and tests
|
||||||
- b_ubu_ubsan_clang: *workflow_trigger_on_tags
|
- b_ubu_ubsan_clang: *workflow_trigger_on_tags
|
||||||
- t_ubu_ubsan_clang: *workflow_ubuntu2004_ubsan_clang
|
- t_ubu_ubsan_clang_soltest: *workflow_ubuntu2004_ubsan_clang
|
||||||
- t_ubu_ubsan_clang_cli: *workflow_ubuntu2004_ubsan_clang
|
- t_ubu_ubsan_clang_cli: *workflow_ubuntu2004_ubsan_clang
|
||||||
|
|
||||||
# Emscripten build and tests that take more than 15 minutes to execute
|
# Emscripten build and tests that take more than 15 minutes to execute
|
||||||
|
Loading…
Reference in New Issue
Block a user