mirror of
https://gitlab.com/ahoneybun/nyxi-installer.git
synced 2025-05-12 02:54:03 -06:00
CI work
This commit is contained in:
parent
e54dba7840
commit
c2d803c553
1 changed files with 25 additions and 9 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue