tracing-awc/.drone.yml
Aode (lion) 49afa1f04c
All checks were successful
continuous-integration/drone/push Build is passing
clippy with opentelemetry
2021-12-03 14:18:10 -06:00

142 lines
2.9 KiB
YAML

kind: pipeline
type: docker
name: clippy
platform:
arch: amd64
clone:
disable: true
steps:
- name: clone
image: alpine/git:latest
user: root
commands:
- git clone $DRONE_GIT_HTTP_URL .
- git checkout $DRONE_COMMIT
- chown -R 991:991 .
- name: clippy
image: asonix/rust-builder:amd64-latest
commands:
- rustup component add clippy
- cargo clippy
- cargo clippy --features opentelemetry_0_13
- cargo clippy --features opentelemetry_0_14
- cargo clippy --features opentelemetry_0_15
- cargo clippy --features opentelemetry_0_16
---
kind: pipeline
type: docker
name: tests
platform:
arch: amd64
clone:
disable: true
steps:
- name: clone
image: alpine/git:latest
user: root
commands:
- git clone $DRONE_GIT_HTTP_URL .
- git checkout $DRONE_COMMIT
- chown -R 991:991 .
- name: tests
image: asonix/rust-builder:amd64-latest
commands:
- cargo test
---
kind: pipeline
type: docker
name: build-amd64
platform:
arch: amd64
clone:
disable: true
steps:
- name: clone
image: alpine/git:latest
user: root
commands:
- git clone $DRONE_GIT_HTTP_URL .
- git checkout $DRONE_COMMIT
- chown -R 991:991 .
- name: build
image: asonix/rust-builder:amd64-latest
commands:
- cargo check --target=x86_64-unknown-linux-musl
- cargo build --target=x86_64-unknown-linux-musl --release
- cargo build --target=x86_64-unknown-linux-musl --example client --features opentelemetry_0_16 --release
- cargo build --target=x86_64-unknown-linux-musl --example server --features opentelemetry_0_16 --release
---
kind: pipeline
type: docker
name: build-arm64v8
platform:
arch: amd64
clone:
disable: true
steps:
- name: clone
image: alpine/git:latest
user: root
commands:
- git clone $DRONE_GIT_HTTP_URL .
- git checkout $DRONE_COMMIT
- chown -R 991:991 .
- name: build
image: asonix/rust-builder:arm64v8-latest
commands:
- cargo check --target=aarch64-unknown-linux-musl
- cargo build --target=aarch64-unknown-linux-musl --release
- cargo build --target=aarch64-unknown-linux-musl --example client --features opentelemetry_0_16 --release
- cargo build --target=aarch64-unknown-linux-musl --example server --features opentelemetry_0_16 --release
---
kind: pipeline
type: docker
name: build-arm32v7
platform:
arch: amd64
clone:
disable: true
steps:
- name: clone
image: alpine/git:latest
user: root
commands:
- git clone $DRONE_GIT_HTTP_URL .
- git checkout $DRONE_COMMIT
- chown -R 991:991 .
- name: build
image: asonix/rust-builder:arm32v7-latest
commands:
- cargo check --target=armv7-unknown-linux-musleabihf
- cargo build --target=armv7-unknown-linux-musleabihf --release
- cargo build --target=armv7-unknown-linux-musleabihf --example client --features opentelemetry_0_16 --release
- cargo build --target=armv7-unknown-linux-musleabihf --example server --features opentelemetry_0_16 --release