From ef2be5c559099ca7ae2c8436244a727c365daf60 Mon Sep 17 00:00:00 2001 From: Aaron Honeycutt Date: Wed, 23 Apr 2025 19:10:43 -0600 Subject: [PATCH] mario --- .gitlab-ci.yml | 39 +++++++++------------------------------ 1 file changed, 9 insertions(+), 30 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 24df212..d81deae 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,32 +1,11 @@ -image: "rust:latest" - -tests-job: - stage: test - image: rust +run_test: + image: rust:latest + before_script: + - rustup --version + - rustc -vV + - rustup component add clippy + - rustup component add rustfmt script: - - echo "======== TESTS JOB ========" + - cargo clippy -- --deny clippy::pedantic + - cargo fmt --all -- --check - cargo test - -prepare-job: - stage: prepare - image: rust - rules: - - if: $CI_COMMIT_TAG - when: never # Do not run this job when a tag is created manually - - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH # Run this job when commits are pushed or merged to the default branch - script: - - echo "======== PREPARE JOB ========" - -build-job: - stage: build - image: ubuntu:22.04 - needs: - - job: tests-job - - job: prepare-job - artifacts: true - script: - - echo "======== BUILD JOB ========" - - cargo build --release - artifacts: - paths: - - target/release/nyxi-installer