From f629dc2796064cc9d57f71c969f0c9586d243f46 Mon Sep 17 00:00:00 2001 From: Brendan Golden Date: Fri, 11 Aug 2023 08:10:04 +0100 Subject: [PATCH] ci: fix pipeline? --- .gitlab-ci.yml | 27 ++++++++++++--------------- Cargo.toml | 1 - 2 files changed, 12 insertions(+), 16 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 3f689c3..3b0e72b 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -25,11 +25,10 @@ lint-clippy: - rustc --version - cargo version - cargo clippy - rules: - - changes: - - src/* - - cargo.* - when: always + only: + changes: + - src/* + - cargo.* lint-fmt: stage: lint @@ -38,11 +37,10 @@ lint-fmt: - rustc --version - cargo version - cargo fmt -- --check - rules: - - changes: - - src/* - - cargo.* - when: always + only: + changes: + - src/* + - cargo.* # has to actually compile @@ -53,11 +51,10 @@ build: - cargo version - cargo build --verbose - RUST_BACKTRACE=1 cargo test --verbose - rules: - - changes: - - src/* - - cargo.* - when: on_success + only: + changes: + - src/* + - cargo.* # from https://docs.gitlab.com/ee/ci/pipelines/multi_project_pipelines.html diff --git a/Cargo.toml b/Cargo.toml index cb096e3..bc1bf5f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -3,7 +3,6 @@ name = "skynet_ldap_backend" version = "0.1.0" edition = "2021" - # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [[bin]] name = "update_data"