forked from yegor256/micromap
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.rultor.yml
29 lines (29 loc) · 945 Bytes
/
.rultor.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
# SPDX-FileCopyrightText: Copyright (c) 2023-2025 Yegor Bugayenko
# SPDX-License-Identifier: MIT
---
# yamllint disable rule:line-length
docker:
image: yegor256/rultor-image:1.24.0
assets:
credentials: yegor256/home#assets/crates-credentials
install: |
pdd --file=/dev/null
merge:
script: |
cargo --color=never test -vv
cargo --color=never fmt --check
cargo doc --no-deps
cargo clippy
release:
pre: false
script: |-
[[ "${tag}" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]] || exit -1
sed -i -e "s/^version = \"0.0.0\"/version = \"${tag}\"/" Cargo.toml
sed -i -e "s/0.0.0/${tag}/" src/lib.rs
cargo --color=never test --all-features -vv -- --nocapture
cargo --color=never test --release --all-features -vv -- --nocapture
cargo --color=never fmt --check
cargo --color=never clippy -- --no-deps
git commit -am "${tag}"
mkdir -p ~/.cargo && cp ../credentials ~/.cargo
cargo --color=never publish