-
-
Notifications
You must be signed in to change notification settings - Fork 7
/
buildkite.yaml
51 lines (46 loc) · 1.18 KB
/
buildkite.yaml
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
# SPDX-FileCopyrightText: 2022 Kevin Amado <kamadorueda@gmail.com>
#
# SPDX-License-Identifier: GPL-3.0-only
steps:
- label: check
command:
- echo --- Prepare environment
- direnv allow
- eval "$(direnv export bash)"
- echo +++ Check
- cargo check --all-targets
- label: coverage
if: build.branch == "main"
agents:
queue: private
command:
- echo --- Prepare environment
- direnv allow
- eval "$(direnv export bash)"
- echo --- Configure
- git branch -D main
- git branch main
- git checkout main
- echo +++ Coverage
- cargo tarpaulin --coveralls "$$COVERALLS_REPO_TOKEN"
- label: legal
command:
- echo --- Prepare environment
- direnv allow
- eval "$(direnv export bash)"
- echo +++ Legal
- reuse lint
- label: lint
command:
- echo --- Prepare environment
- direnv allow
- eval "$(direnv export bash)"
- echo +++ Lint
- cargo clippy --all-targets
- label: test
command:
- echo --- Prepare environment
- direnv allow
- eval "$(direnv export bash)"
- echo +++ Test
- cargo test --all-targets