From 91acf3932d4bc35a63103ceea5e2e27be55af004 Mon Sep 17 00:00:00 2001 From: dbaranov34 Date: Fri, 10 May 2024 15:25:30 +0400 Subject: [PATCH] rm internals --- .gitlab-ci.yml | 102 ---------------------------------------- .pre-commit-config.yaml | 5 -- 2 files changed, 107 deletions(-) delete mode 100644 .gitlab-ci.yml delete mode 100644 .pre-commit-config.yaml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml deleted file mode 100644 index 2b7768ba..00000000 --- a/.gitlab-ci.yml +++ /dev/null @@ -1,102 +0,0 @@ -image: ${CI_REGISTRY}/ston-fi/docker/rust-build:20.10.24_1.76.0-5641dcc8 - -# Prevent duplicate pipelines, branch pipeline and merge_request pipeline -workflow: - rules: - - if: '$CI_PIPELINE_SOURCE == "merge_request_event"' - - if: '$CI_COMMIT_BRANCH && $CI_OPEN_MERGE_REQUESTS' - when: never - - if: '$CI_COMMIT_BRANCH || $CI_COMMIT_TAG' - -stages: - - test - -variables: - FF_USE_FASTZIP: 1 - CACHE_COMPRESSION_LEVEL: "fastest" - CARGO_HOME: "${CI_PROJECT_DIR}/.cargo" - RUSTFLAGS: "-D warnings -C target-cpu=znver2" - TARGET_CPU_MARCH: "znver2" - - -.snippets: - get-cache: - - | - if [ "$CI_COMMIT_REF_NAME" != "$CI_DEFAULT_BRANCH" ]; then - export CACHE_FALLBACK_KEY="cache-$CI_DEFAULT_BRANCH-$CI_RUNNER_ID-non-protected"; - else - export CACHE_FALLBACK_KEY="cache-main-$CI_RUNNER_ID-protected"; - fi - echo "Using cache key: cache-$CI_COMMIT_REF_SLUG" - echo "Fallback cache key: $CACHE_FALLBACK_KEY" - -cache: - key: shared-cache - paths: - - target/ - - .cargo/ - - -test: - stage: test - before_script: - - !reference [.snippets, get-cache] - script: - - cargo fmt --check - - cargo clippy --release - - cargo clippy --features "state_cache" --release - - cargo clippy --features "emulate_get_method" --release - - - cargo build --release - - cargo build --release --features "state_cache" - - cargo build --release --features "emulate_get_method" - - cargo test --lib - - cargo test --lib --features "state_cache" - - cargo test --lib --features "emulate_get_method" - tags: - - zen4 - rules: - - if: $CI_COMMIT_BRANCH != $CI_DEFAULT_BRANCH && $CI_PIPELINE_SOURCE != 'merge_request_event' - -integration_test: - stage: test - before_script: - - !reference [.snippets, get-cache] - script: - - cargo install cargo-nextest - - cargo nextest run --release - - cargo nextest run --release --features "state_cache" - - cargo nextest run --release --features "emulate_get_method" - tags: - - zen4 - when: manual - -test-mr: - tags: - - zen4 - stage: test - before_script: - - !reference [.snippets, get-cache] - script: - - cargo fmt --check - - cargo clippy --release - - cargo clippy --release --features "state_cache" - - cargo clippy --release --features "emulate_get_method" - - cargo build --release - - cargo build --release --features "state_cache" - - cargo rustc --release --features "emulate_get_method" - - cargo test --lib --all-features - rules: - - if: $CI_PIPELINE_SOURCE == 'merge_request_event' - -test-master: - tags: - - zen4 - stage: test - script: - - cargo fmt --check - - cargo rustc --all-features -- -D warnings - - cargo test --lib --all-features - rules: - - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH - diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml deleted file mode 100644 index c24bafa1..00000000 --- a/.pre-commit-config.yaml +++ /dev/null @@ -1,5 +0,0 @@ -repos: -- repo: https://git.stonfi.net/ston-fi/infrastructure/pre-commit-hooks - rev: b2553d529beb93e75e5ca40663716476faa89ea6 - hooks: - - id: pre-commit-rust-cargo-fmt