-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
.woodpecker.yml
79 lines (70 loc) · 2.12 KB
/
.woodpecker.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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
pipeline:
test:
when:
event: pull_request
image: rust:latest
secrets: [COVERALLS_TOKEN]
commands:
- "#"
- "# installing prerequisites"
- "#"
- apt-get update
- apt-get install -y ninja-build python3-requests
- curl -L https://github.com/mozilla/grcov/releases/download/v0.8.2/grcov-linux-x86_64.tar.bz2 | tar jxf -
#- cargo install grcov --version 0.6.1
- rustup toolchain install nightly
- rustup +nightly component add llvm-tools-preview
- cargo install --locked cargo-udeps
- "#"
- "# configure git"
- git config --global init.defaultBranch main
- git config --global user.email "ci@riot-labs.de"
- git config --global user.name "CI"
- "#"
- "# compiling with stable rust"
- "#"
- cargo build
- "#"
- "# stable unittests"
- "#"
- cargo test --verbose --all
- "#"
- "# stable end-to-end tests"
- "#"
- 'LAZE=$(pwd)/target/debug/laze make -C src/tests'
- "#"
- "# compiling with nightly rust"
- "#"
- 'RUSTFLAGS="-Cinstrument-coverage" cargo +nightly build'
- "#"
- "# nightly unittests"
- "#"
- 'RUSTFLAGS="-Cinstrument-coverage" cargo +nightly test'
- "#"
- "# end-to-end tests"
- "#"
- 'LAZE=$(pwd)/target/debug/laze make -C src/tests || true'
- "#"
- "# checking for unused dependencies"
- "#"
- cargo +nightly udeps
- "#"
- "# uploading coverage results"
- "#"
- >
RUSTUP_TOOLCHAIN=nightly
./grcov
$(find . -name 'default*profraw' -print)
--token $${COVERALLS_TOKEN}
--commit-sha $${DRONE_COMMIT}
--service-name drone.schleiser.de
--service-number $${DRONE_BUILD_NUMBER}
--vcs-branch $${DRONE_COMMIT_BRANCH}
--binary-path ./target/debug/laze
--branch
--output-path coveralls.json
--output-type coveralls+
--source-dir .
--ignore "/*" &&
python3 dist/coveralls.py coveralls.json
|| true # temporarily allow an arror