From 28b0b18332778077aea4085fe63e14fb69bf98c9 Mon Sep 17 00:00:00 2001 From: cyqsimon <28627918+cyqsimon@users.noreply.github.com> Date: Thu, 26 Oct 2023 15:31:29 +0800 Subject: [PATCH] atuin: 17.0.0 --- build-res/atuin-run-tests.sh | 17 +++++++++++++++++ specs/atuin.spec | 17 +++++++++++------ 2 files changed, 28 insertions(+), 6 deletions(-) create mode 100755 build-res/atuin-run-tests.sh diff --git a/build-res/atuin-run-tests.sh b/build-res/atuin-run-tests.sh new file mode 100755 index 0000000..f464f9b --- /dev/null +++ b/build-res/atuin-run-tests.sh @@ -0,0 +1,17 @@ +#!/usr/bin/env bash + +# this helper script is needed because it seems like it's not possible +# to run a background process in the .spec file directly + +set -e + +source ~/.cargo/env + +# PostgresQL is needed for some tests +PGDATA="$HOME/.local/share/pgsql/data" +mkdir -p "$PGDATA" +postgres -D "$PGDATA" &> postgres.log & +ss -tupln + +cargo test --workspace +cat postgres.log diff --git a/specs/atuin.spec b/specs/atuin.spec index c3d0a9b..db6c591 100644 --- a/specs/atuin.spec +++ b/specs/atuin.spec @@ -1,7 +1,7 @@ %global debug_package %{nil} Name: atuin -Version: 16.0.0 +Version: 17.0.0 Release: 1%{?dist} Summary: Magical shell history @@ -9,7 +9,7 @@ License: MIT URL: https://github.com/ellie/atuin Source0: %{url}/archive/v%{version}.tar.gz -BuildRequires: gcc +BuildRequires: gcc iproute postgresql-server %description Atuin replaces your existing shell history with a SQLite database, and @@ -24,6 +24,10 @@ machines, via an Atuin server. curl -Lf "https://sh.rustup.rs" | sh -s -- --profile minimal -y %build +pwd +find $HOME -name atuin-run-tests.sh 2>/dev/null +exit 1 + source ~/.cargo/env RUSTFLAGS="-C strip=symbols" cargo build --release @@ -32,10 +36,7 @@ for SHELL in "bash" "fish" "zsh"; do done %check -source ~/.cargo/env -# skip postgres test -cargo test --workspace -- \ - --skip registration +../build-res/atuin-run-tests.sh %install # bin @@ -55,6 +56,10 @@ install -Dpm 644 _%{name} %{buildroot}%{_datadir}/zsh/site-functions/_%{name} %{_datadir}/zsh/site-functions/_%{name} %changelog +* Thu Oct 26 2023 cyqsimon - 17.0.0-1 +- Release 17.0.0 +- Re-enable postgresql tests + * Tue Aug 08 2023 cyqsimon - 16.0.0-1 - Relaese 16.0.0