diff --git a/.travis.yml b/.travis.yml index 551328c..c4b3256 100644 --- a/.travis.yml +++ b/.travis.yml @@ -10,6 +10,9 @@ sudo: required services: - docker +before_install: + - ./install-redis.sh + script: "npm run test" after_success: diff --git a/install-redis.sh b/install-redis.sh new file mode 100755 index 0000000..f3d6caf --- /dev/null +++ b/install-redis.sh @@ -0,0 +1,12 @@ +#!/bin/bash + +# Adapted from: +# https://www.digitalocean.com/community/tutorials/how-to-install-and-secure-redis-on-ubuntu-18-04 + +# Install Redis. +sudo apt install redis-server + +# Converting to systemd managed process +#echo "supervised systemd" >> /etc/redis/redis.conf + +#sudo systemctl restart redis.service