mirror of
https://github.com/ivabus/pantry
synced 2024-11-26 18:25:08 +03:00
redis.io: improve config and testing
This commit is contained in:
parent
eada7a7946
commit
f64ce6ef8b
1 changed files with 20 additions and 4 deletions
|
@ -16,16 +16,32 @@ dependencies:
|
||||||
|
|
||||||
build:
|
build:
|
||||||
dependencies:
|
dependencies:
|
||||||
gnu.org/make: '>=4.3'
|
# gnu.org/make: '>=4.3'
|
||||||
|
tea.xyz/gx/make: '*'
|
||||||
freedesktop.org/pkg-config: '>=0.29'
|
freedesktop.org/pkg-config: '>=0.29'
|
||||||
tea.xyz/gx/cc: c99
|
tea.xyz/gx/cc: c99
|
||||||
script:
|
script:
|
||||||
PREFIX={{prefix}}
|
|
||||||
BUILD_TLS=yes
|
|
||||||
make install
|
make install
|
||||||
# TODO: configure default redis.conf if necessary
|
# TODO: configure default redis.conf if necessary
|
||||||
|
env:
|
||||||
|
PREFIX: ${{prefix}}
|
||||||
|
BUILD_TLS: yes
|
||||||
test:
|
test:
|
||||||
script: |
|
script: |
|
||||||
redis-server --test-memory 2
|
redis-server --test-memory 2
|
||||||
redis-cli --version
|
redis-cli --version
|
||||||
redis-benchmark --version
|
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
|
||||||
|
|
Loading…
Reference in a new issue