From ce2fef9147058eab601d4f1204d06be2ebf3a2f7 Mon Sep 17 00:00:00 2001 From: Lifailon Date: Wed, 12 Mar 2025 09:52:13 +0300 Subject: [PATCH] add supfile for testing in bsd --- README.md | 23 ++++++++++++++--------- Supfile.yml | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 67 insertions(+), 9 deletions(-) create mode 100644 Supfile.yml diff --git a/README.md b/README.md index 966ffdf..0e5e32e 100644 --- a/README.md +++ b/README.md @@ -7,10 +7,11 @@ Go Report Go Reference - - - +
+ + +

Terminal user interface for reading logs from `journalctl`, file system, Docker and Podman containers, as well Kubernetes pods for quick viewing and filtering with fuzzy find (like `fzf`), regex support (like `grep`) and coloring the output, written in Go with the [awesome-gocui](https://github.com/awesome-gocui/gocui) (fork [gocui](https://github.com/jroimartin/gocui)) library. @@ -83,29 +84,31 @@ paru -S lazyjournal Thank you [Matteo Giordano](https://github.com/malteo) for upload and update the package in AUR. -### conda / mamba / pixi (Linux / MacOS / Windows) +### Conda / mamba / pixi (Linux / macOS / Windows) -If you use package managers like conda or mamba, you can install lazyjournal from [conda-forge](https://conda-forge.org/). +If you use package managers like conda or mamba, you can install lazyjournal from [conda-forge](https://anaconda.org/conda-forge/lazyjournal): ```shell conda install -c conda-forge lazyjournal mamba install -c conda-forge lazyjournal ``` -You can install lazyjournal user-globally using [pixi](https://prefix.dev/). +You can install lazyjournal user-globally using [pixi](https://prefix.dev): ```shell pixi global install lazyjournal ``` -### Homebrew (MacOS / Linux) +### Homebrew (macOS / Linux) -Use the following command to install lazyjournal using [Homebrew](https://brew.sh/). +Use the following command to install lazyjournal using [Homebrew](https://formulae.brew.sh/formula/lazyjournal): ```shell brew install lazyjournal ``` +Thank you [Ueno M.](https://github.com/eunos-1128) for upload and update the package in homebrew and conda. + ### Windows Use the following command to quickly install in your PowerShell console: @@ -185,7 +188,9 @@ Run unit tests to check functions and their performance: go test -v ``` -The test coverage report using CI Actions for different systems is available on the [Wiki](https://github.com/Lifailon/lazyjournal/wiki) page. +The test coverage report using CI Actions for Linux, macOS and Windows systems is available on the [Wiki](https://github.com/Lifailon/lazyjournal/wiki) page. + +Testing in BSD-based systems is done in a home environment using [usup](https://github.com/Lifailon/usup). ## Hotkeys diff --git a/Supfile.yml b/Supfile.yml new file mode 100644 index 0000000..5d8d10d --- /dev/null +++ b/Supfile.yml @@ -0,0 +1,53 @@ +env: + GIT_URL: https://github.com/Lifailon/lazyjournal + +networks: + bsd: + hosts: + - root@192.168.3.102:22 + - root@192.168.3.103:22 + +commands: + install: + desc: Install Go + run: | + if [ "$(uname -s)" = "FreeBSD" ]; then + pkg install go + elif [ "$(uname -s)" = "OpenBSD" ]; then + pkg_add go + fi + + clone: + desc: Clone repository + run: | + git clone $GIT_URL + cd lazyjournal + ls -lh + + prep: + desc: Install dependencies and code preparation + run: | + cd lazyjournal + go fmt ./... + go vet ./... + go get ./... + go mod tidy + go mod verify + go build -o /dev/null -v ./... + + test: + desc: Run unit test for interface + run: | + cd lazyjournal + go test -v -cover --run "TestMainInterface|TestMockInterface" + + remove: + desc: Remove repository + run: rm -rf lazyjournal + +targets: + deploy: + - clone + - prep + - test + - remove \ No newline at end of file