mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
CI: Convert single-step templates into proper commands
This commit is contained in:
parent
a442f0608a
commit
d0dc9e7af0
@ -179,47 +179,67 @@ commands:
|
|||||||
paths:
|
paths:
|
||||||
- << parameters.install_path >>
|
- << parameters.install_path >>
|
||||||
|
|
||||||
defaults:
|
|
||||||
|
|
||||||
# --------------------------------------------------------------------------
|
# --------------------------------------------------------------------------
|
||||||
# Build Templates
|
# Build Commands
|
||||||
|
|
||||||
- setup_prerelease_commit_hash: &setup_prerelease_commit_hash
|
setup_prerelease_commit_hash:
|
||||||
name: Store commit hash and prerelease
|
steps:
|
||||||
command: |
|
- run:
|
||||||
if [ "$CIRCLE_BRANCH" = release -o -n "$CIRCLE_TAG" ]; then echo -n > prerelease.txt; else date -u +"nightly.%Y.%-m.%-d" > prerelease.txt; fi
|
name: Store commit hash and prerelease
|
||||||
echo -n "$CIRCLE_SHA1" > commit_hash.txt
|
command: |
|
||||||
|
if [[ $CIRCLE_BRANCH == release || -n $CIRCLE_TAG ]]; then
|
||||||
|
echo -n > prerelease.txt;
|
||||||
|
else
|
||||||
|
date -u +"nightly.%Y.%-m.%-d" > prerelease.txt;
|
||||||
|
fi
|
||||||
|
echo -n "$CIRCLE_SHA1" > commit_hash.txt
|
||||||
|
|
||||||
- run_build: &run_build
|
run_build:
|
||||||
name: Build
|
steps:
|
||||||
command: scripts/ci/build.sh
|
- run:
|
||||||
|
name: Build
|
||||||
|
command: scripts/ci/build.sh
|
||||||
|
|
||||||
- run_build_ossfuzz: &run_build_ossfuzz
|
run_build_ossfuzz:
|
||||||
name: Build_ossfuzz
|
steps:
|
||||||
command: scripts/ci/build_ossfuzz.sh
|
- run:
|
||||||
|
name: Build_ossfuzz
|
||||||
|
command: scripts/ci/build_ossfuzz.sh
|
||||||
|
|
||||||
- run_proofs: &run_proofs
|
run_proofs:
|
||||||
name: Correctness proofs for optimization rules
|
steps:
|
||||||
command: scripts/run_proofs.sh
|
- run:
|
||||||
|
name: Correctness proofs for optimization rules
|
||||||
|
command: scripts/run_proofs.sh
|
||||||
|
|
||||||
- run_soltest: &run_soltest
|
run_soltest:
|
||||||
name: soltest
|
steps:
|
||||||
no_output_timeout: 30m
|
- run:
|
||||||
command: ./.circleci/soltest.sh
|
name: soltest
|
||||||
|
no_output_timeout: 30m
|
||||||
|
command: ./.circleci/soltest.sh
|
||||||
|
|
||||||
- run_soltest_all: &run_soltest_all
|
run_soltest_all:
|
||||||
name: soltest_all
|
steps:
|
||||||
no_output_timeout: 30m
|
- run:
|
||||||
command: ./.circleci/soltest_all.sh
|
name: soltest_all
|
||||||
|
no_output_timeout: 30m
|
||||||
|
command: ./.circleci/soltest_all.sh
|
||||||
|
|
||||||
- run_cmdline_tests: &run_cmdline_tests
|
run_cmdline_tests:
|
||||||
name: command line tests
|
steps:
|
||||||
no_output_timeout: 30m
|
- run:
|
||||||
command: .circleci/parallel_cli_tests.py
|
name: command line tests
|
||||||
|
no_output_timeout: 30m
|
||||||
|
command: .circleci/parallel_cli_tests.py
|
||||||
|
|
||||||
- run_docs_pragma_min_version: &run_docs_pragma_min_version
|
run_docs_pragma_min_version:
|
||||||
name: docs pragma version check
|
steps:
|
||||||
command: ./scripts/docs_version_pragma_check.sh
|
- run:
|
||||||
|
name: docs pragma version check
|
||||||
|
command: ./scripts/docs_version_pragma_check.sh
|
||||||
|
|
||||||
|
defaults:
|
||||||
|
|
||||||
# --------------------------------------------------------------------------
|
# --------------------------------------------------------------------------
|
||||||
# Matrix templates
|
# Matrix templates
|
||||||
@ -298,7 +318,7 @@ defaults:
|
|||||||
# NOTE: Different build jobs produce different soltest executables (release/debug,
|
# 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
|
# 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.
|
# attached workspace and we only see the items added to the workspace by jobs we depend on.
|
||||||
- run: *run_soltest
|
- run_soltest
|
||||||
- store_test_results:
|
- store_test_results:
|
||||||
path: test_results/
|
path: test_results/
|
||||||
- store_artifacts: *artifacts_test_results
|
- store_artifacts: *artifacts_test_results
|
||||||
@ -320,7 +340,7 @@ defaults:
|
|||||||
- steps_build: &steps_build
|
- steps_build: &steps_build
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
- run: *run_build
|
- run_build
|
||||||
- store_artifacts: *artifacts_solc
|
- store_artifacts: *artifacts_solc
|
||||||
- store_artifacts: *artifact_yul_phaser
|
- store_artifacts: *artifact_yul_phaser
|
||||||
- persist_to_workspace: *artifacts_executables
|
- persist_to_workspace: *artifacts_executables
|
||||||
@ -331,7 +351,7 @@ defaults:
|
|||||||
- checkout
|
- checkout
|
||||||
- attach_workspace:
|
- attach_workspace:
|
||||||
at: build
|
at: build
|
||||||
- run: *run_soltest_all
|
- run_soltest_all
|
||||||
- store_test_results:
|
- store_test_results:
|
||||||
path: test_results/
|
path: test_results/
|
||||||
- store_artifacts: *artifacts_test_results
|
- store_artifacts: *artifacts_test_results
|
||||||
@ -342,7 +362,7 @@ defaults:
|
|||||||
- checkout
|
- checkout
|
||||||
- attach_workspace:
|
- attach_workspace:
|
||||||
at: build
|
at: build
|
||||||
- run: *run_cmdline_tests
|
- run_cmdline_tests
|
||||||
- store_test_results:
|
- store_test_results:
|
||||||
path: test_results/
|
path: test_results/
|
||||||
- store_artifacts: *artifacts_test_results
|
- store_artifacts: *artifacts_test_results
|
||||||
@ -867,14 +887,14 @@ jobs:
|
|||||||
- checkout
|
- checkout
|
||||||
- install_python3:
|
- install_python3:
|
||||||
packages: z3-solver
|
packages: z3-solver
|
||||||
- run: *run_proofs
|
- run_proofs
|
||||||
- matrix_notify_failure_unless_pr
|
- matrix_notify_failure_unless_pr
|
||||||
|
|
||||||
chk_docs_pragma_min_version:
|
chk_docs_pragma_min_version:
|
||||||
<<: *base_ubuntu2204_small
|
<<: *base_ubuntu2204_small
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
- run: *run_docs_pragma_min_version
|
- run_docs_pragma_min_version
|
||||||
- matrix_notify_failure_unless_pr
|
- matrix_notify_failure_unless_pr
|
||||||
|
|
||||||
t_ubu_pyscripts:
|
t_ubu_pyscripts:
|
||||||
@ -947,7 +967,7 @@ jobs:
|
|||||||
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
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
- run: *run_build
|
- run_build
|
||||||
- run:
|
- run:
|
||||||
name: strip binary
|
name: strip binary
|
||||||
command: strip build/solc/solc
|
command: strip build/solc/solc
|
||||||
@ -970,7 +990,7 @@ jobs:
|
|||||||
CMAKE_BUILD_TYPE: Debug
|
CMAKE_BUILD_TYPE: Debug
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
- run: *run_build
|
- run_build
|
||||||
- persist_to_workspace: *artifacts_executables
|
- persist_to_workspace: *artifacts_executables
|
||||||
- matrix_notify_failure_unless_pr
|
- matrix_notify_failure_unless_pr
|
||||||
|
|
||||||
@ -990,7 +1010,7 @@ jobs:
|
|||||||
- run:
|
- run:
|
||||||
name: "Code Coverage: Syntax Tests"
|
name: "Code Coverage: Syntax Tests"
|
||||||
command: codecov --flags syntax --gcov-root build
|
command: codecov --flags syntax --gcov-root build
|
||||||
- run: *run_soltest
|
- run_soltest
|
||||||
- run:
|
- run:
|
||||||
name: "Coverage: All"
|
name: "Coverage: All"
|
||||||
command: codecov --flags all --gcov-root build
|
command: codecov --flags all --gcov-root build
|
||||||
@ -1008,15 +1028,15 @@ jobs:
|
|||||||
MAKEFLAGS: -j 10
|
MAKEFLAGS: -j 10
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
- run: *run_build
|
- run_build
|
||||||
- matrix_notify_failure_unless_pr
|
- matrix_notify_failure_unless_pr
|
||||||
|
|
||||||
b_ubu_ossfuzz: &b_ubu_ossfuzz
|
b_ubu_ossfuzz: &b_ubu_ossfuzz
|
||||||
<<: *base_ubuntu_clang
|
<<: *base_ubuntu_clang
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
- run: *setup_prerelease_commit_hash
|
- setup_prerelease_commit_hash
|
||||||
- run: *run_build_ossfuzz
|
- run_build_ossfuzz
|
||||||
- persist_to_workspace: *artifacts_executables_ossfuzz
|
- persist_to_workspace: *artifacts_executables_ossfuzz
|
||||||
- matrix_notify_failure_unless_pr
|
- matrix_notify_failure_unless_pr
|
||||||
|
|
||||||
@ -1048,7 +1068,7 @@ jobs:
|
|||||||
command: |
|
command: |
|
||||||
pacman --noconfirm -Syu --noprogressbar --needed base-devel boost cmake cvc4 git openssh tar
|
pacman --noconfirm -Syu --noprogressbar --needed base-devel boost cmake cvc4 git openssh tar
|
||||||
- checkout
|
- checkout
|
||||||
- run: *run_build
|
- run_build
|
||||||
- store_artifacts: *artifacts_solc
|
- store_artifacts: *artifacts_solc
|
||||||
- persist_to_workspace: *artifacts_executables
|
- persist_to_workspace: *artifacts_executables
|
||||||
- matrix_notify_failure_unless_pr
|
- matrix_notify_failure_unless_pr
|
||||||
@ -1063,7 +1083,7 @@ jobs:
|
|||||||
- when:
|
- when:
|
||||||
condition: true
|
condition: true
|
||||||
<<: *steps_install_dependencies_osx
|
<<: *steps_install_dependencies_osx
|
||||||
- run: *run_build
|
- run_build
|
||||||
- store_artifacts: *artifacts_solc
|
- store_artifacts: *artifacts_solc
|
||||||
- store_artifacts: *artifact_yul_phaser
|
- store_artifacts: *artifact_yul_phaser
|
||||||
- persist_to_workspace:
|
- persist_to_workspace:
|
||||||
@ -1087,7 +1107,7 @@ jobs:
|
|||||||
<<: *steps_install_dependencies_osx
|
<<: *steps_install_dependencies_osx
|
||||||
- attach_workspace:
|
- attach_workspace:
|
||||||
at: .
|
at: .
|
||||||
- run: *run_soltest
|
- run_soltest
|
||||||
- store_test_results:
|
- store_test_results:
|
||||||
path: test_results/
|
path: test_results/
|
||||||
- store_artifacts: *artifacts_test_results
|
- store_artifacts: *artifacts_test_results
|
||||||
@ -1103,7 +1123,7 @@ jobs:
|
|||||||
<<: *steps_install_dependencies_osx
|
<<: *steps_install_dependencies_osx
|
||||||
- attach_workspace:
|
- attach_workspace:
|
||||||
at: .
|
at: .
|
||||||
- run: *run_cmdline_tests
|
- run_cmdline_tests
|
||||||
- store_artifacts: *artifacts_test_results
|
- store_artifacts: *artifacts_test_results
|
||||||
- matrix_notify_failure_unless_pr
|
- matrix_notify_failure_unless_pr
|
||||||
|
|
||||||
@ -1135,7 +1155,7 @@ jobs:
|
|||||||
<<: *base_ubuntu2204_small
|
<<: *base_ubuntu2204_small
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
- run: *setup_prerelease_commit_hash
|
- setup_prerelease_commit_hash
|
||||||
- run:
|
- run:
|
||||||
name: Build documentation
|
name: Build documentation
|
||||||
command: ./docs/docs.sh
|
command: ./docs/docs.sh
|
||||||
|
Loading…
Reference in New Issue
Block a user