diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index e6b37d9..6daa052 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,12 +1,28 @@ -run_test: +stages: + - test + - build + - deploy-prod + +test: + stage: test image: rust:latest before_script: - - rustup --version - - rustc -vV - - rustup component add clippy - - rustup component add rustfmt - - apt install -y fdisk + - apt update -m + - apt install -y libfdisk-dev libclang-19-dev script: - - cargo clippy -- --deny clippy::pedantic - - cargo fmt --all -- --check - - cargo test + - cargo test --verbose + +build: + stage: build + image: rust:latest + before_script: + - apt update -m + - apt install -y libfdisk-dev libclang-19-dev + script: + - cargo build --verbose + +deploy-prod: + stage: deploy + script: + - echo "Let's launch!" + environment: production