[CI] fix 'services' section in integration tests

parent b6d3a7f5
Pipeline #6428 failed with stages
in 12 minutes and 30 seconds
......@@ -55,7 +55,6 @@ integration-tests:
services:
- name: docker.io/cgenie/pgmq:16-1.3.3.1
alias: pgmq
services:
- name: docker.io/redis:7.2
alias: redis
variables:
......
# Haskell-pgmq
# Haskell-bee
This is a simple interface to Tembo's
[pgmq](https://github.com/tembo-io/pgmq) PostgreSQL extension.
This is a library for implementing asynchronous workers which can fetch jobs from a (configurable) broker.
Based on [elixir pgmq](https://hexdocs.pm/pgmq/Pgmq.html) bindings.
You can think of it as a simple Haskell rewrite of [Celery](https://docs.celeryq.dev/en/stable/).
## Running test cases
There is a binary in [./bin/simple-test/Main.hs](./bin/simple-test/Main.hs), it should contain all test cases for the basic module `Database.PGMQ.Simple`.
First, let's decide which container to use:
```shell
export PGMQ_CONTAINER=docker.io/cgenie/pgmq:16-1.3.3.1
```
However with the above, some tests might fail because some functions
throw errors when a table is not there (e.g. `pgmq.drop_queue`).
Some fixes are made in our custom repo:
https://github.com/garganscript/pgmq
and you can use:
```shell
export PGMQ_CONTAINER=cgenie/pgmq:16-1.3.3.1
```
To run it, first start a pgmq container:
```shell
podman run --name pgmq -e POSTGRES_PASSWORD=postgres -p 5432:5432 $PG_CONTAINER
```
or with Docker:
```shell
docker run --name pgmq -e POSTGRES_PASSWORD=postgres -p 5432:5432 $PG_CONTAINER
```
Then run the tests:
```shell
cabal v2-run simple-test
```
It should print out some debug info, but finish without errors.
......@@ -8,6 +8,6 @@ packages:
source-repository-package
type: git
location: https://gitlab.iscpif.fr/gargantext/haskell-pgmq
tag: 18bf14b15ab483741fdfc7e39d42004c56194d1
tag: 1bfa37fd1714bff74cf5a8f256a847ca52447dfc
tests: true
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment