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:
|
|
|
|
dependencies:
|
2023-01-13 02:55:19 +03:00
|
|
|
# gnu.org/make: '>=4.3'
|
|
|
|
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
|
|
|
|
redis_value=$(redis-cli --raw GET key123)
|
|
|
|
echo $redis_value
|
|
|
|
|
|
|
|
redis-cli shutdown
|
|
|
|
|
|
|
|
if [ $redis_value = "value123" ]; then
|
|
|
|
echo "redis works!"
|
|
|
|
else
|
|
|
|
echo "redis install doesnt work!"
|
|
|
|
set -e
|
|
|
|
fi
|