forked from cinco/tmuxido
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a5429c3543 | ||
|
|
8a7df892e8 | ||
|
|
f0949e08c5 | ||
|
|
d80857090e | ||
|
|
19f36060a0 |
+11
-23
@@ -6,9 +6,6 @@ trigger:
|
|||||||
event:
|
event:
|
||||||
- push
|
- push
|
||||||
- pull_request
|
- pull_request
|
||||||
branch:
|
|
||||||
exclude:
|
|
||||||
- badges
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: test
|
- name: test
|
||||||
@@ -25,33 +22,22 @@ steps:
|
|||||||
GITEA_TOKEN:
|
GITEA_TOKEN:
|
||||||
from_secret: gitea_token
|
from_secret: gitea_token
|
||||||
commands:
|
commands:
|
||||||
- apt-get update -qq && apt-get install -y -qq jq git curl
|
- apt-get update -qq && apt-get install -y -qq jq curl
|
||||||
- cargo tarpaulin --out Json 2>/dev/null
|
- cargo tarpaulin --out Json 2>/dev/null
|
||||||
- |
|
- |
|
||||||
PCT=$(jq '.coverage | floor' tarpaulin-report.json)
|
PCT=$(jq '(.covered / .coverable * 100) | floor' tarpaulin-report.json)
|
||||||
if [ "$PCT" -ge 80 ]; then COLOR="brightgreen"
|
if [ "$PCT" -ge 80 ]; then COLOR="brightgreen"
|
||||||
elif [ "$PCT" -ge 60 ]; then COLOR="yellow"
|
elif [ "$PCT" -ge 60 ]; then COLOR="yellow"
|
||||||
else COLOR="red"; fi
|
else COLOR="red"; fi
|
||||||
curl -sf "https://img.shields.io/badge/coverage-${PCT}%25-${COLOR}.svg" -o coverage.svg
|
curl -sf "https://img.shields.io/badge/coverage-${PCT}%25-${COLOR}.svg" -o coverage.svg
|
||||||
- |
|
- |
|
||||||
git config --global user.email "ci@drone"
|
curl -sf -X DELETE \
|
||||||
git config --global user.name "Drone CI"
|
-H "Authorization: token $GITEA_TOKEN" \
|
||||||
REPO="https://cinco:${GITEA_TOKEN}@git.cincoeuzebio.com/cinco/Tmuxido.git"
|
"https://git.cincoeuzebio.com/api/packages/cinco/generic/badges/latest" || true
|
||||||
if git clone --branch badges --single-branch "$REPO" _badges 2>/dev/null; then
|
curl -fsSL -X PUT \
|
||||||
cp coverage.svg _badges/
|
-H "Authorization: token $GITEA_TOKEN" \
|
||||||
cd _badges
|
-T coverage.svg \
|
||||||
git add coverage.svg
|
"https://git.cincoeuzebio.com/api/packages/cinco/generic/badges/latest/coverage.svg"
|
||||||
git diff --cached --quiet || git commit -m "ci: update coverage badge [CI SKIP]"
|
|
||||||
git push
|
|
||||||
else
|
|
||||||
mkdir _badges && cp coverage.svg _badges/
|
|
||||||
cd _badges && git init
|
|
||||||
git remote add origin "$REPO"
|
|
||||||
git checkout --orphan badges
|
|
||||||
git add coverage.svg
|
|
||||||
git commit -m "ci: add coverage badge"
|
|
||||||
git push origin badges
|
|
||||||
fi
|
|
||||||
|
|
||||||
---
|
---
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
@@ -61,6 +47,8 @@ name: release
|
|||||||
trigger:
|
trigger:
|
||||||
event:
|
event:
|
||||||
- tag
|
- tag
|
||||||
|
ref:
|
||||||
|
- refs/tags/[0-9]*
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: build-x86_64
|
- name: build-x86_64
|
||||||
|
|||||||
+8
-2
@@ -4,11 +4,17 @@ All notable changes to this project will be documented in this file.
|
|||||||
|
|
||||||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
|
||||||
|
|
||||||
|
## [0.2.4] - 2026-03-01
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
- Cálculo do percentual de cobertura no CI (campo correto do JSON do tarpaulin)
|
||||||
|
- Pipeline `release` restrito a tags com formato de versão (`[0-9]*`)
|
||||||
|
|
||||||
## [0.2.2] - 2026-02-28
|
## [0.2.2] - 2026-02-28
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
- Coverage badge generated by `cargo-tarpaulin` in CI, hosted on the `badges` branch
|
- Coverage badge gerado por `cargo-tarpaulin` no CI e hospedado no Gitea Generic Package Registry
|
||||||
- CI status, coverage, version, and Rust edition badges in README
|
- CI status, coverage, version e Rust edition badges no README
|
||||||
|
|
||||||
## [0.2.1] - 2026-02-28
|
## [0.2.1] - 2026-02-28
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "tmuxido"
|
name = "tmuxido"
|
||||||
version = "0.2.2"
|
version = "0.2.4"
|
||||||
edition = "2024"
|
edition = "2024"
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
# tmuxido
|
# tmuxido
|
||||||
|
|
||||||
[](https://drone.cincoeuzebio.com/cinco/Tmuxido)
|
[](https://drone.cincoeuzebio.com/cinco/Tmuxido)
|
||||||
[](https://drone.cincoeuzebio.com/cinco/Tmuxido)
|
[](https://drone.cincoeuzebio.com/cinco/Tmuxido)
|
||||||
[](https://git.cincoeuzebio.com/cinco/Tmuxido/releases)
|
[](https://git.cincoeuzebio.com/cinco/Tmuxido/releases)
|
||||||

|

|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user