tracing-awc/.drone.yml

317 lines
5.6 KiB
YAML
Raw Permalink 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
2021-12-22 21:56:34 +00:00
image: asonix/rust-builder:latest-linux-amd64
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
2022-02-04 01:26:45 +00:00
- cargo clippy --features opentelemetry_0_17 -- -D warnings
2022-09-21 03:09:27 +00:00
- cargo clippy --features opentelemetry_0_18 -- -D warnings
2023-05-23 21:41:16 +00:00
- cargo clippy --features opentelemetry_0_19 -- -D warnings
2023-08-04 23:53:36 +00:00
- cargo clippy --features opentelemetry_0_20 -- -D warnings
2023-11-13 18:44:38 +00:00
- cargo clippy --features opentelemetry_0_21 -- -D warnings
- cargo clippy --example client --features opentelemetry_0_21 -- -D warnings
- cargo clippy --example server --features opentelemetry_0_21 -- -D warnings
2021-12-03 23:00:06 +00:00
trigger:
event:
2021-12-28 16:00:26 +00:00
- tag
2021-12-03 23:00:06 +00:00
- 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
2021-12-22 21:56:34 +00:00
image: asonix/rust-builder:latest-linux-amd64
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:
2021-12-28 16:00:26 +00:00
- tag
2021-12-03 23:00:06 +00:00
- 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
2021-12-22 21:56:34 +00:00
image: asonix/rust-builder:latest-linux-amd64
2021-12-03 21:37:48 +00:00
pull: always
2021-12-03 20:04:19 +00:00
commands:
2021-12-28 16:00:26 +00:00
- cargo check --target=$TARGET
2023-11-13 18:44:38 +00:00
- cargo check --target=$TARGET --example client --features opentelemetry_0_21
- cargo check --target=$TARGET --example server --features opentelemetry_0_21
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-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
2021-12-22 21:56:34 +00:00
image: asonix/rust-builder:latest-linux-arm64v8
2021-12-03 21:37:48 +00:00
pull: always
2021-12-03 20:04:19 +00:00
commands:
2021-12-28 16:00:26 +00:00
- cargo check --target=$TARGET
2023-11-13 18:44:38 +00:00
- cargo check --target=$TARGET --example client --features opentelemetry_0_21
- cargo check --target=$TARGET --example server --features opentelemetry_0_21
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-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
2021-12-22 21:56:34 +00:00
image: asonix/rust-builder:latest-linux-arm32v7
2021-12-03 21:37:48 +00:00
pull: always
2021-12-03 20:04:19 +00:00
commands:
2021-12-28 16:00:26 +00:00
- cargo check --target=$TARGET
2023-11-13 18:44:38 +00:00
- cargo check --target=$TARGET --example client --features opentelemetry_0_21
- cargo check --target=$TARGET --example server --features opentelemetry_0_21
2021-12-03 23:00:06 +00:00
trigger:
event:
- push
- pull_request
2021-12-28 16:00:26 +00:00
---
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:latest-linux-amd64
pull: always
commands:
- cargo build --target=$TARGET
2023-11-13 18:44:38 +00:00
- cargo build --target=$TARGET --example client --features opentelemetry_0_21
- cargo build --target=$TARGET --example server --features opentelemetry_0_21
2021-12-28 16:00:26 +00:00
trigger:
event:
- tag
---
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:latest-linux-arm64v8
pull: always
commands:
- cargo build --target=$TARGET
2023-11-13 18:44:38 +00:00
- cargo build --target=$TARGET --example client --features opentelemetry_0_21
- cargo build --target=$TARGET --example server --features opentelemetry_0_21
2021-12-28 16:00:26 +00:00
trigger:
event:
- tag
---
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:latest-linux-arm32v7
pull: always
commands:
- cargo build --target=$TARGET
2023-11-13 18:44:38 +00:00
- cargo build --target=$TARGET --example client --features opentelemetry_0_21
- cargo build --target=$TARGET --example server --features opentelemetry_0_21
2021-12-28 16:00:26 +00:00
trigger:
event:
- tag
---
kind: pipeline
type: docker
name: publish-crate
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: publish
image: asonix/rust-builder:latest-linux-amd64
pull: always
environment:
CRATES_IO_TOKEN:
from_secret: crates_io_token
commands:
- cargo publish --token $CRATES_IO_TOKEN
depends_on:
- clippy
- tests
- build-amd64
- build-arm64v8
- build-arm32v7
trigger:
event:
- tag