tracing-awc/.drone.yml
Aode (lion) c8e31bea20
All checks were successful
continuous-integration/drone/push Build is passing
Fail on clippy
2021-12-05 15:29:13 -06:00

171 lines
3.2 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
pull: always
commands:
- rustup component add clippy
- cargo clippy -- -D warnings
- cargo clippy --features opentelemetry_0_13 -- -D warnings
- cargo clippy --features opentelemetry_0_14 -- -D warnings
- cargo clippy --features opentelemetry_0_15 -- -D warnings
- cargo clippy --features opentelemetry_0_16 -- -D warnings
- cargo clippy --example client --features opentelemetry_0_16 -- -D warnings
- cargo clippy --example server --features opentelemetry_0_16 -- -D warnings
trigger:
event:
- push
- pull_request
---
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
pull: always
commands:
- cargo test
trigger:
event:
- push
- pull_request
---
kind: pipeline
type: docker
name: check-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
pull: always
commands:
- cargo check --target=x86_64-unknown-linux-musl
- cargo check --target=x86_64-unknown-linux-musl --example client --features opentelemetry_0_16
- cargo check --target=x86_64-unknown-linux-musl --example server --features opentelemetry_0_16
trigger:
event:
- push
- pull_request
---
kind: pipeline
type: docker
name: check-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
pull: always
commands:
- cargo check --target=aarch64-unknown-linux-musl
- cargo check --target=aarch64-unknown-linux-musl --example client --features opentelemetry_0_16
- cargo check --target=aarch64-unknown-linux-musl --example server --features opentelemetry_0_16
trigger:
event:
- push
- pull_request
---
kind: pipeline
type: docker
name: check-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
pull: always
commands:
- cargo check --target=armv7-unknown-linux-musleabihf
- cargo check --target=armv7-unknown-linux-musleabihf --example client --features opentelemetry_0_16
- cargo check --target=armv7-unknown-linux-musleabihf --example server --features opentelemetry_0_16
trigger:
event:
- push
- pull_request