BurritOS/.gitlab-ci.yml
2023-03-08 12:51:31 +00:00

29 lines
550 B
YAML

default:
image: rust:latest
before_script:
- curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain none
stages:
- build
- test
build-job:
stage: build
script:
- echo "Compiling the code..."
- cargo build
- echo "Compile complete."
unit-test-job:
stage: test
script:
- echo "Running unit tests..."
- cargo test
- echo "Code coverage is 90%"
lint-test-job:
stage: test
script:
- echo "Linting code... This will take about 10 seconds."
- cargo clippy
- echo "No lint issues found."