mirror of
https://gitlab.com/ahoneybun/nyxi-installer.git
synced 2025-05-12 11:04:02 -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
|
image: rust:latest
|
||||||
before_script:
|
before_script:
|
||||||
- rustup --version
|
- apt update -m
|
||||||
- rustc -vV
|
- apt install -y libfdisk-dev libclang-19-dev
|
||||||
- rustup component add clippy
|
|
||||||
- rustup component add rustfmt
|
|
||||||
- apt install -y fdisk
|
|
||||||
script:
|
script:
|
||||||
- cargo clippy -- --deny clippy::pedantic
|
- cargo test --verbose
|
||||||
- cargo fmt --all -- --check
|
|
||||||
- cargo test
|
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