veilid/.gitlab-ci.yml

32 lines
707 B
YAML
Raw Normal View History

variables:
GIT_SUBMODULE_STRATEGY: recursive
2021-11-29 20:41:42 +00:00
BUILD_IMAGE_LINUX_AMD64: $CI_REGISTRY/veilid/ci-cd/veilid-build-linux-amd64:latest
2021-11-24 21:49:13 +00:00
stages:
- clippy
- test
############# Clippy Lint
clippy:
stage: clippy
2021-11-29 20:41:42 +00:00
image: ${BUILD_IMAGE_LINUX_AMD64}
2021-11-24 21:49:13 +00:00
tags:
- linux
- amd64
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 20:41:42 +00:00
image: ${BUILD_IMAGE_LINUX_AMD64}
2021-11-24 21:49:13 +00:00
tags:
- linux
- amd64
script:
# - RUSTFLAGS="-D warnings" RUST_BACKTRACE=1 cargo test -- --nocapture
- RUST_BACKTRACE=1 cargo test -- --nocapture