burritos/.gitlab-ci.yml

29 lines
550 B
YAML
Raw Normal View History

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