From acfe87b91a4956b4c296cb62472594639e41872f Mon Sep 17 00:00:00 2001 From: Alan Orth Date: Sun, 21 Mar 2021 11:48:05 +0200 Subject: [PATCH] Add GitHub Actions badge and remove sr.ht --- .build.yml | 21 --------------------- README.md | 2 +- 2 files changed, 1 insertion(+), 22 deletions(-) delete mode 100644 .build.yml diff --git a/.build.yml b/.build.yml deleted file mode 100644 index a7889f6..0000000 --- a/.build.yml +++ /dev/null @@ -1,21 +0,0 @@ -image: archlinux -packages: - - python-poetry - - postgresql -sources: - - https://git.sr.ht/~alanorth/dspace-statistics-api -tasks: - - setup: | - id - psql --version - sudo su - postgres -c "initdb --locale en_US.UTF-8 -E UTF8 -D '/var/lib/postgres/data'" - sudo systemctl start postgresql - createuser -U postgres dspacestatistics - psql -U postgres -c "ALTER USER dspacestatistics WITH PASSWORD 'dspacestatistics'" - createdb -U postgres -O dspacestatistics --encoding=UNICODE dspacestatistics - cd dspace-statistics-api - psql -U postgres -d dspacestatistics < tests/dspacestatistics.sql - poetry install --no-root - - test: | - cd dspace-statistics-api - poetry run pytest diff --git a/README.md b/README.md index 1f486b2..960fb1b 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# DSpace Statistics API [![Build Status](https://ci.mjanja.ch/api/badges/alanorth/dspace-statistics-api/status.svg?ref=refs/heads/v6_x)](https://ci.mjanja.ch/alanorth/dspace-statistics-api) [![builds.sr.ht status](https://builds.sr.ht/~alanorth/dspace-statistics-api.svg)](https://builds.sr.ht/~alanorth/dspace-statistics-api?) +# DSpace Statistics API [![Build Status](https://ci.mjanja.ch/api/badges/alanorth/dspace-statistics-api/status.svg?ref=refs/heads/v6_x)](https://ci.mjanja.ch/alanorth/dspace-statistics-api) [![Build and Test](https://github.com/ilri/dspace-statistics-api/actions/workflows/python-app.yml/badge.svg)](https://github.com/ilri/dspace-statistics-api/actions/workflows/python-app.yml) DSpace stores item view and download events in a Solr "statistics" core. This information is available for use in the various DSpace user interfaces, but is not exposed externally via any APIs. The DSpace 4/5/6 [REST API](https://wiki.lyrasis.org/display/DSDOC5x/REST+API), for example, only exposes _metadata_ about communities, collections, items, and bitstreams. - If your DSpace is version 4 or 5, use [dspace-statistics-api v1.1.1](https://github.com/ilri/dspace-statistics-api/releases/tag/v1.1.1)