mirror of
https://gitlab.com/veilid/veilid.git
synced 2024-11-22 08:56:58 -06:00
38 lines
819 B
YAML
38 lines
819 B
YAML
variables:
|
|
GIT_SUBMODULE_STRATEGY: recursive
|
|
BUILD_IMAGE_LINUX_AMD64: $CI_REGISTRY/veilid/ci-cd/veilid-build-linux-amd64:latest
|
|
|
|
stages:
|
|
- clippy
|
|
- test
|
|
|
|
############# Clippy Lint
|
|
clippy:
|
|
stage: clippy
|
|
image: ${BUILD_IMAGE_LINUX_AMD64}
|
|
tags:
|
|
- linux
|
|
- amd64
|
|
cache:
|
|
paths:
|
|
- target/
|
|
before_script:
|
|
- rustup component add clippy
|
|
script:
|
|
# - RUSTFLAGS="-D warnings" RUST_BACKTRACE=1 cargo clippy
|
|
- RUST_BACKTRACE=1 cargo clippy
|
|
|
|
############# Unit Testing
|
|
test_linux_amd64:
|
|
stage: test
|
|
image: ${BUILD_IMAGE_LINUX_AMD64}
|
|
tags:
|
|
- linux
|
|
- amd64
|
|
cache:
|
|
paths:
|
|
- target/
|
|
script:
|
|
# - RUSTFLAGS="-D warnings" RUST_BACKTRACE=1 dbus-run-session -- cargo test -- --nocapture
|
|
- RUST_BACKTRACE=1 dbus-run-session -- cargo test -- --nocapture
|