mirror of
				https://github.com/ethereum/solidity
				synced 2023-10-03 13:03:40 +00:00 
			
		
		
		
	CI: Define a base_ dict for every image and set default values for some env variables there
				
					
				
			This commit is contained in:
		
							parent
							
								
									9aafbf1092
								
							
						
					
					
						commit
						9c96234724
					
				| @ -212,14 +212,93 @@ defaults: | |||||||
|   - base_ubuntu1604_clang: &base_ubuntu1604_clang |   - 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 >> | ||||||
|  |       environment: | ||||||
|  |         TERM: xterm | ||||||
| 
 | 
 | ||||||
|   - base_ubuntu2004_clang: &base_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 >> | ||||||
|  |       environment: | ||||||
|  |         TERM: xterm | ||||||
|  |         CC: clang | ||||||
|  |         CXX: clang++ | ||||||
|  |         MAKEFLAGS: -j 3 | ||||||
|  | 
 | ||||||
|  |   - 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 |   - base_ubuntu2004: &base_ubuntu2004 | ||||||
|       docker: |       docker: | ||||||
|         - image: << pipeline.parameters.ubuntu-2004-docker-image >> |         - image: << pipeline.parameters.ubuntu-2004-docker-image >> | ||||||
|  |       environment: | ||||||
|  |         TERM: xterm | ||||||
|  | 
 | ||||||
|  |   - base_ubuntu2004_xlarge: &base_ubuntu2004_xlarge | ||||||
|  |       <<: *base_ubuntu2004 | ||||||
|  |       resource_class: xlarge | ||||||
|  |       environment: | ||||||
|  |         TERM: xterm | ||||||
|  |         MAKEFLAGS: -j 10 | ||||||
|  | 
 | ||||||
|  |   - base_buildpack_focal: &base_buildpack_focal | ||||||
|  |       docker: | ||||||
|  |         - image: buildpack-deps:focal | ||||||
|  |       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 | ||||||
| @ -303,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: | ||||||
| @ -320,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: | ||||||
| @ -336,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: | ||||||
| @ -354,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: | ||||||
| @ -363,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: | ||||||
| @ -379,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: | ||||||
| @ -391,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: | ||||||
| @ -408,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: | ||||||
| @ -423,17 +486,13 @@ 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_pyscripts_ubu: | ||||||
|     docker: |     <<: *base_ubuntu2004 | ||||||
|       - image: << pipeline.parameters.ubuntu-2004-docker-image >> |  | ||||||
|     steps: |     steps: | ||||||
|       - checkout |       - checkout | ||||||
|       - run: |       - run: | ||||||
| @ -441,9 +500,7 @@ jobs: | |||||||
|           command: python3 test/pyscriptTests.py |           command: python3 test/pyscriptTests.py | ||||||
| 
 | 
 | ||||||
|   t_pyscripts_win: |   t_pyscripts_win: | ||||||
|     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 | ||||||
| @ -452,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 | ||||||
| @ -467,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 | ||||||
| @ -479,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 | ||||||
| @ -493,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++ | ||||||
| @ -507,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++ | ||||||
| @ -528,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 | ||||||
| @ -541,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 | ||||||
| @ -576,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 | ||||||
| @ -586,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 | ||||||
| @ -617,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 | ||||||
| @ -633,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 | ||||||
| @ -670,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 | ||||||
| @ -688,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: | ||||||
| @ -703,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: | ||||||
| @ -728,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,27 +773,25 @@ jobs: | |||||||
|     <<: *steps_soltest_all |     <<: *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 |       TERM: xterm | ||||||
|         TERM: xterm |       # For Archlinux we do not have prebuilt docker images and we would need to build evmone from source, | ||||||
|         # For Archlinux we do not have prebuilt docker images and we would need to build evmone from source, |       # thus we forgo semantics tests to speed things up. | ||||||
|         # thus we forgo semantics tests to speed things up. |       SOLTEST_FLAGS: --no-semantic-tests | ||||||
|         SOLTEST_FLAGS: --no-semantic-tests |     steps: | ||||||
|       steps: |       - run: | ||||||
|         - run: |           name: Install runtime dependencies | ||||||
|             name: Install runtime dependencies |           command: | | ||||||
|             command: | |             pacman --noconfirm -Syu --noprogressbar --needed base-devel boost cmake z3 cvc4 git openssh tar | ||||||
|               pacman --noconfirm -Syu --noprogressbar --needed base-devel boost cmake z3 cvc4 git openssh tar |       - when: | ||||||
|         - when: |           condition: true | ||||||
|             condition: true |           <<: *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 | ||||||
| @ -774,7 +799,6 @@ 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 | ||||||
|     <<: *base_ubuntu2004_clang |     <<: *base_ubuntu2004_clang | ||||||
|     environment: |     environment: | ||||||
| @ -788,17 +812,14 @@ jobs: | |||||||
|     <<: *t_ubu_soltest |     <<: *t_ubu_soltest | ||||||
| 
 | 
 | ||||||
|   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 | ||||||
| @ -824,10 +845,9 @@ jobs: | |||||||
|     <<: *steps_soltest |     <<: *steps_soltest | ||||||
| 
 | 
 | ||||||
|   t_ubu_ubsan_clang: |   t_ubu_ubsan_clang: | ||||||
|  |     <<: *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 | ||||||
| @ -835,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 | ||||||
| @ -844,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: | ||||||
| @ -866,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 | ||||||
| @ -929,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 | ||||||
| @ -966,9 +979,7 @@ jobs: | |||||||
|       FORCE_RELEASE: ON |       FORCE_RELEASE: ON | ||||||
| 
 | 
 | ||||||
|   t_win: &t_win |   t_win: &t_win | ||||||
|     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. | ||||||
| @ -988,8 +999,7 @@ jobs: | |||||||
|     <<: *t_win |     <<: *t_win | ||||||
| 
 | 
 | ||||||
|   b_bytecode_ubu: |   b_bytecode_ubu: | ||||||
|     docker: |     <<: *base_ubuntu2004 | ||||||
|       - image: << pipeline.parameters.ubuntu-2004-docker-image >> |  | ||||||
|     steps: |     steps: | ||||||
|       - checkout |       - checkout | ||||||
|       - attach_workspace: |       - attach_workspace: | ||||||
| @ -1009,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: | ||||||
| @ -1032,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. | ||||||
| @ -1057,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: | ||||||
| @ -1074,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 | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user