tracing-awc/.drone.yml

171 lines
3.2 KiB
YAML
Raw Normal View History

2021-12-03 20:04:19 +00:00
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
2021-12-03 21:37:48 +00:00
pull: always
2021-12-03 20:04:19 +00:00
commands:
- rustup component add clippy
2021-12-05 21:29:13 +00:00
- 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
2021-12-03 23:00:06 +00:00
trigger:
event:
- push
- pull_request
2021-12-03 20:04:19 +00:00
---
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
2021-12-03 21:37:48 +00:00
pull: always
2021-12-03 20:04:19 +00:00
commands:
- cargo test
2021-12-03 23:00:06 +00:00
trigger:
event:
- push
- pull_request
2021-12-03 20:04:19 +00:00
---
kind: pipeline
type: docker
2021-12-03 23:00:06 +00:00
name: check-amd64
2021-12-03 20:04:19 +00:00
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
2021-12-03 21:37:48 +00:00
pull: always
2021-12-03 20:04:19 +00:00
commands:
2021-12-03 20:06:10 +00:00
- cargo check --target=x86_64-unknown-linux-musl
2021-12-03 23:00:06 +00:00
- 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
2021-12-03 20:04:19 +00:00
---
kind: pipeline
type: docker
2021-12-03 23:00:06 +00:00
name: check-arm64v8
2021-12-03 20:04:19 +00:00
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
2021-12-03 21:37:48 +00:00
pull: always
2021-12-03 20:04:19 +00:00
commands:
2021-12-03 20:06:10 +00:00
- cargo check --target=aarch64-unknown-linux-musl
2021-12-03 23:00:06 +00:00
- 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
2021-12-03 20:04:19 +00:00
---
kind: pipeline
type: docker
2021-12-03 23:00:06 +00:00
name: check-arm32v7
2021-12-03 20:04:19 +00:00
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
2021-12-03 21:37:48 +00:00
pull: always
2021-12-03 20:04:19 +00:00
commands:
2021-12-03 20:06:10 +00:00
- cargo check --target=armv7-unknown-linux-musleabihf
2021-12-03 23:00:06 +00:00
- 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