veilid/.gitlab-ci.yml

38 lines
819 B
YAML
Raw Normal View History

variables:
GIT_SUBMODULE_STRATEGY: recursive
2021-11-29 14:41:42 -06:00
BUILD_IMAGE_LINUX_AMD64: $CI_REGISTRY/veilid/ci-cd/veilid-build-linux-amd64:latest
2021-11-24 15:49:13 -06:00
stages:
- clippy
- test
############# Clippy Lint
clippy:
stage: clippy
2021-11-29 14:41:42 -06:00
image: ${BUILD_IMAGE_LINUX_AMD64}
2021-11-24 15:49:13 -06:00
tags:
- linux
- amd64
2021-12-05 10:06:22 -06:00
cache:
paths:
- target/
2021-11-24 15:49:13 -06:00
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
2021-11-29 14:41:42 -06:00
image: ${BUILD_IMAGE_LINUX_AMD64}
2021-11-24 15:49:13 -06:00
tags:
- linux
- amd64
2021-12-05 10:06:22 -06:00
cache:
paths:
- target/
2021-11-24 15:49:13 -06:00
script:
2021-12-05 09:53:52 -06:00
# - RUSTFLAGS="-D warnings" RUST_BACKTRACE=1 dbus-run-session -- cargo test -- --nocapture
- RUST_BACKTRACE=1 dbus-run-session -- cargo test -- --nocapture