mirror of
https://gitlab.com/asus-linux/asusctl.git
synced 2026-01-22 09:23:19 +01:00
Adjust gitlab pipeline to ignore checks for tags
This commit is contained in:
@@ -17,7 +17,7 @@ cache:
|
|||||||
- target/release/.cargo-lock
|
- target/release/.cargo-lock
|
||||||
|
|
||||||
before_script:
|
before_script:
|
||||||
- apt-get update -qq && apt-get install -y -qq libudev-dev libgtk-3-dev
|
- apt-get update -qq && apt-get install -y -qq libudev-dev libgtk-3-dev grep
|
||||||
|
|
||||||
stages:
|
stages:
|
||||||
- format
|
- format
|
||||||
@@ -26,13 +26,16 @@ stages:
|
|||||||
- release
|
- release
|
||||||
|
|
||||||
format:
|
format:
|
||||||
image: rust:latest
|
except:
|
||||||
|
- tags
|
||||||
script:
|
script:
|
||||||
- echo "nightly" > rust-toolchain
|
- echo "nightly" > rust-toolchain
|
||||||
- rustup component add rustfmt
|
- rustup component add rustfmt
|
||||||
- cargo fmt --check
|
- cargo fmt --check
|
||||||
|
|
||||||
check:
|
check:
|
||||||
|
except:
|
||||||
|
- tags
|
||||||
script:
|
script:
|
||||||
- rustup component add clippy
|
- rustup component add clippy
|
||||||
- cargo check
|
- cargo check
|
||||||
@@ -41,6 +44,8 @@ check:
|
|||||||
- cargo install cargo-cranky && cargo cranky
|
- cargo install cargo-cranky && cargo cranky
|
||||||
|
|
||||||
test:
|
test:
|
||||||
|
except:
|
||||||
|
- tags
|
||||||
script:
|
script:
|
||||||
- cargo test
|
- cargo test
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user