pantry/projects/redis.io/package.yml

41 lines
760 B
YAML
Raw Normal View History

2023-01-09 15:52:09 +03:00
distributable:
url: https://download.redis.io/releases/redis-{{ version }}.tar.gz
strip-components: 1
versions:
github: redis/redis
provides:
- bin/redis-server
2023-01-11 13:51:42 +03:00
- bin/redis-cli
- bin/redis-benchmark
2023-01-09 15:52:09 +03:00
dependencies:
openssl.org: ^1
build:
2023-01-13 03:04:52 +03:00
cores: 2
2023-01-09 15:52:09 +03:00
dependencies:
2023-01-13 02:55:19 +03:00
tea.xyz/gx/make: '*'
2023-01-09 15:52:09 +03:00
freedesktop.org/pkg-config: '>=0.29'
2023-01-11 13:51:42 +03:00
tea.xyz/gx/cc: c99
2023-01-09 15:52:09 +03:00
script:
make install
2023-01-11 13:51:42 +03:00
# TODO: configure default redis.conf if necessary
2023-01-13 02:55:19 +03:00
env:
PREFIX: ${{prefix}}
BUILD_TLS: yes
2023-01-09 15:52:09 +03:00
test:
script: |
redis-server --test-memory 2
2023-01-11 13:51:42 +03:00
redis-cli --version
2023-01-13 02:55:19 +03:00
redis-benchmark --version
redis-server --daemonize yes
redis-cli --raw SET key123 value123
2023-01-13 03:08:57 +03:00
test "$(redis-cli --raw GET key123)" = "value123"
2023-01-13 02:55:19 +03:00
2023-01-13 03:08:57 +03:00
redis-cli shutdown