diff --git a/polkadot/.gitlab-ci.yml b/polkadot/.gitlab-ci.yml index 14295f7c3c..96b6852434 100644 --- a/polkadot/.gitlab-ci.yml +++ b/polkadot/.gitlab-ci.yml @@ -230,8 +230,19 @@ check-runtime-benchmarks: <<: *compiler-info <<: *vault-secrets script: - # Check that the node will compile with `runtime-benchmarks` feature flag. - - ./scripts/gitlab/check_runtime_benchmarks.sh + # Check that everything compiles with `runtime-benchmarks` feature flag. + - cargo check --features runtime-benchmarks --all + - sccache -s + +check-try-runtime: + stage: test + <<: *test-refs + <<: *docker-env + <<: *compiler-info + <<: *vault-secrets + script: + # Check that everything compiles with `try-runtime` feature flag. + - cargo check --features try-runtime --all - sccache -s check-no-default-features: @@ -242,7 +253,8 @@ check-no-default-features: <<: *vault-secrets script: # Check that polkadot-cli will compile no default features. - - ./scripts/gitlab/check_no_default_features.sh + - pushd node/service && cargo check --no-default-features && popd + - pushd cli && cargo check --no-default-features --features "service" && popd - sccache -s spellcheck: diff --git a/polkadot/scripts/gitlab/check_no_default_features.sh b/polkadot/scripts/gitlab/check_no_default_features.sh deleted file mode 100755 index 455e5e72e5..0000000000 --- a/polkadot/scripts/gitlab/check_no_default_features.sh +++ /dev/null @@ -1,6 +0,0 @@ -#!/usr/bin/env bash - -set -e - -pushd node/service && cargo check --no-default-features && popd -pushd cli && cargo check --no-default-features --features "service" && popd diff --git a/polkadot/scripts/gitlab/check_runtime_benchmarks.sh b/polkadot/scripts/gitlab/check_runtime_benchmarks.sh deleted file mode 100755 index 9e6a26d2a4..0000000000 --- a/polkadot/scripts/gitlab/check_runtime_benchmarks.sh +++ /dev/null @@ -1,6 +0,0 @@ -#!/usr/bin/env bash - -#shellcheck source=../common/lib.sh -source "$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )/../common/lib.sh" - -time cargo check --features runtime-benchmarks