This repository has been archived by the owner on Oct 4, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.drone.yml
52 lines (50 loc) · 1.71 KB
/
.drone.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
---
kind: pipeline
type: docker
name: crypto-glue-amd64
platform:
arch: amd64
os: linux
steps:
- name: build-crypto-glue-amd64
image: 084037375216.dkr.ecr.us-east-2.amazonaws.com/honda-builder
pull: always
environment:
PATH: /bin:/usr/bin:/usr/local/bin:/sbin:/usr/sbin:/usr/local/sbin:/root/.cargo/bin
CODECOV_TOKEN:
from_secret: codecov_token
commands:
- cargo build
- CARGO_INCREMENTAL=0 RUSTFLAGS='-Cinstrument-coverage' LLVM_PROFILE_FILE='coverage/cargo-test-%p-%m.profraw' cargo test
- mkdir -p target/coverage
- grcov . --binary-path ./target/debug/deps/ -s . -t lcov --branch --ignore-not-existing --ignore '../*' --ignore "/*" -o target/coverage/tests.lcov
- codecov -B ${DRONE_BRANCH} -b ${DRONE_BUILD_NUMBER} -f target/coverage/tests.lcov -F amd64
trigger:
event:
- custom
- push
---
kind: pipeline
type: docker
name: crypto-glue-arm64
platform:
arch: arm64
os: linux
steps:
- name: build-crypto-glue-arm64
image: 084037375216.dkr.ecr.us-east-2.amazonaws.com/honda-builder
pull: always
environment:
PATH: /bin:/usr/bin:/usr/local/bin:/sbin:/usr/sbin:/usr/local/sbin:/root/.cargo/bin
CODECOV_TOKEN:
from_secret: codecov_token
commands:
- cargo build
- CARGO_INCREMENTAL=0 RUSTFLAGS='-Cinstrument-coverage' LLVM_PROFILE_FILE='coverage/cargo-test-%p-%m.profraw' cargo test
- mkdir -p target/coverage
- grcov . --binary-path ./target/debug/deps/ -s . -t lcov --branch --ignore-not-existing --ignore '../*' --ignore "/*" -o target/coverage/tests.lcov
- codecov -B ${DRONE_BRANCH} -b ${DRONE_BUILD_NUMBER} -f target/coverage/tests.lcov -F arm64
trigger:
event:
- custom
- push