Skip to content

Commit

Permalink
Fix the CI pipeline.
Browse files Browse the repository at this point in the history
  • Loading branch information
clementwanjau committed Jul 6, 2024
1 parent 625c609 commit e11cc6b
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,19 @@ default:
- .cargo/registry/cache
- target/debug/deps
before_script:
- rustup self update
- rustup update
- rustc --version # Print version of Rust compiler
- rustup component add rustfmt
- rustup component add clippy

stages:
- source
- update dependencies
- build
- test
- deploy

format-job:
stage: source
script:
- rustup component add rustfmt
- cargo fmt

fix-job:
Expand All @@ -33,10 +31,11 @@ fix-job:
lint-job:
stage: source
script:
- rustup component add clippy
- cargo clippy -- -Dwarnings

update-dependencies-job:
stage: build
stage: update dependencies
script:
- cargo update

Expand Down Expand Up @@ -66,4 +65,4 @@ deploy:
release:
name: $CI_COMMIT_TAG
tag_name: $CI_COMMIT_TAG
description: $CI_COMMIT_TAG_MESSAGE
description: './CHANGELOG.md'

0 comments on commit e11cc6b

Please sign in to comment.