Skip to content

Commit

Permalink
atuin: 17.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
cyqsimon committed Oct 26, 2023
1 parent 0bef2a5 commit dadbe05
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 6 deletions.
17 changes: 17 additions & 0 deletions build-res/atuin-run-tests.sh
Original file line number Diff line number Diff line change
@@ -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
16 changes: 10 additions & 6 deletions specs/atuin.spec
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
%global debug_package %{nil}

Name: atuin
Version: 16.0.0
Version: 17.0.0
Release: 1%{?dist}
Summary: Magical shell history

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
Expand All @@ -24,6 +24,9 @@ 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

source ~/.cargo/env
RUSTFLAGS="-C strip=symbols" cargo build --release

Expand All @@ -32,10 +35,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
Expand All @@ -55,6 +55,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

Expand Down

0 comments on commit dadbe05

Please sign in to comment.