9 Commits
Author SHA1 Message Date
cinco a5429c3543 chore: bump version to 0.2.4
continuous-integration/drone/tag Build is failing
2026-02-28 21:23:31 -03:00
cinco 8a7df892e8 ci: fix tarpaulin JSON field for coverage percentage 2026-02-28 21:19:56 -03:00
cinco f0949e08c5 ci: restrict release pipeline to version tags only 2026-02-28 21:14:14 -03:00
cinco d80857090e docs: update CI badge label in README.md
continuous-integration/drone/tag Build is failing
Changed the CI badge label from "CI" to "Build Status" for better clarity and consistency with common badge naming conventions.
2026-02-28 21:10:45 -03:00
cinco 19f36060a0 ci: use Gitea generic package registry for coverage badge 2026-02-28 21:08:39 -03:00
cinco 2dc12e37c9 chore: bump version to 0.2.2
continuous-integration/drone/tag Build is failing
2026-02-28 21:04:39 -03:00
cinco 280a180d3e ci: add coverage badge pipeline and README badges 2026-02-28 21:04:05 -03:00
cinco 5f281b1f9e docs: add CHANGELOG and use it as release description in CI 2026-02-28 20:26:29 -03:00
cinco 9150f93f6a ci: add test pipeline and bump version to 0.2.1
continuous-integration/drone/tag Build is failing
Adds a Drone CI pipeline that runs on push and pull_request events,
executing cargo fmt --check, cargo clippy, and cargo test in sequence.
2026-02-28 20:23:09 -03:00
4 changed files with 94 additions and 2 deletions
+47 -1
View File
@@ -1,10 +1,54 @@
kind: pipeline
type: docker
name: ci
trigger:
event:
- push
- pull_request
steps:
- name: test
image: rust:latest
commands:
- cargo fmt --check
- cargo clippy -- -D warnings
- cargo test
- name: coverage
image: xd009642/tarpaulin
privileged: true
environment:
GITEA_TOKEN:
from_secret: gitea_token
commands:
- apt-get update -qq && apt-get install -y -qq jq curl
- cargo tarpaulin --out Json 2>/dev/null
- |
PCT=$(jq '(.covered / .coverable * 100) | floor' tarpaulin-report.json)
if [ "$PCT" -ge 80 ]; then COLOR="brightgreen"
elif [ "$PCT" -ge 60 ]; then COLOR="yellow"
else COLOR="red"; fi
curl -sf "https://img.shields.io/badge/coverage-${PCT}%25-${COLOR}.svg" -o coverage.svg
- |
curl -sf -X DELETE \
-H "Authorization: token $GITEA_TOKEN" \
"https://git.cincoeuzebio.com/api/packages/cinco/generic/badges/latest" || true
curl -fsSL -X PUT \
-H "Authorization: token $GITEA_TOKEN" \
-T coverage.svg \
"https://git.cincoeuzebio.com/api/packages/cinco/generic/badges/latest/coverage.svg"
---
kind: pipeline
type: docker
name: release
trigger:
event:
- tag
ref:
- refs/tags/[0-9]*
steps:
- name: build-x86_64
@@ -27,11 +71,13 @@ steps:
commands:
- apk add --no-cache curl jq
- |
# Extract changelog entry for this tag (content between this and previous ## heading)
BODY=$(awk "/^## \[${DRONE_TAG}\]/{found=1; next} found && /^## \[/{exit} found{print}" CHANGELOG.md)
RELEASE_ID=$(curl -fsSL -X POST \
-H "Authorization: token $GITEA_TOKEN" \
-H "Content-Type: application/json" \
"https://git.cincoeuzebio.com/api/v1/repos/cinco/Tmuxido/releases" \
-d "{\"tag_name\":\"$DRONE_TAG\",\"name\":\"$DRONE_TAG\",\"body\":\"Release $DRONE_TAG\"}" \
-d "{\"tag_name\":\"$DRONE_TAG\",\"name\":\"$DRONE_TAG\",\"body\":$(echo "$BODY" | jq -Rs .)}" \
| jq -r .id)
for ASSET in tmuxido-x86_64-linux tmuxido-aarch64-linux; do
curl -fsSL -X POST \
+41
View File
@@ -0,0 +1,41 @@
# Changelog
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/).
## [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
### Added
- Coverage badge gerado por `cargo-tarpaulin` no CI e hospedado no Gitea Generic Package Registry
- CI status, coverage, version e Rust edition badges no README
## [0.2.1] - 2026-02-28
### Added
- Drone CI pipeline (`ci`) that runs `cargo fmt --check`, `cargo clippy`, and `cargo test` on every push and pull request
## [0.2.0] - 2026-02-28
### Added
- Unit tests for `cache`, `session`, and `config` modules
- Integration tests for scan, session config, and cache lifecycle
### Changed
- Refactored business logic into `lib.rs` for better testability; `main.rs` is now a thin entrypoint
## [0.1.1] - 2026-02-28
### Fixed
- Removed personal path references from default configuration and examples
## [0.1.0] - 2026-02-28
### Added
- Initial release of tmuxido
+1 -1
View File
@@ -1,6 +1,6 @@
[package]
name = "tmuxido"
version = "0.2.0"
version = "0.2.4"
edition = "2024"
[dev-dependencies]
+5
View File
@@ -1,5 +1,10 @@
# tmuxido
[![Build Status](https://drone.cincoeuzebio.com/api/badges/cinco/Tmuxido/status.svg)](https://drone.cincoeuzebio.com/cinco/Tmuxido)
[![Coverage](https://git.cincoeuzebio.com/api/packages/cinco/generic/badges/latest/coverage.svg)](https://drone.cincoeuzebio.com/cinco/Tmuxido)
[![Version](https://img.shields.io/gitea/v/release/cinco/Tmuxido?gitea_url=https%3A%2F%2Fgit.cincoeuzebio.com&label=version)](https://git.cincoeuzebio.com/cinco/Tmuxido/releases)
![Rust 2024](https://img.shields.io/badge/rust-edition_2024-orange?logo=rust)
A Rust-based tool to quickly find and open projects in tmux using fzf. No external dependencies except tmux and fzf!
## Features