2021-11-26 14:54:38 +00:00
|
|
|
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-26 14:54:38 +00:00
|
|
|
|
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:
|
2021-11-30 01:23:21 +00:00
|
|
|
- dbus-uuidgen > /var/lib/dbus/machine-id
|
|
|
|
- mkdir -p /var/run/dbus
|
|
|
|
- dbus-daemon --config-file=/usr/share/dbus-1/system.conf --print-address
|
2021-11-24 21:49:13 +00:00
|
|
|
# - RUSTFLAGS="-D warnings" RUST_BACKTRACE=1 cargo test -- --nocapture
|
|
|
|
- RUST_BACKTRACE=1 cargo test -- --nocapture
|