Skip to content

Commit e86e12b

Browse files
piotrppintsized
authored andcommitted
Bump Travis distro to Focal, use newer Redis packages
1 parent 7d568a2 commit e86e12b

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.travis.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
sudo: required
2-
dist: trusty
2+
dist: focal
33

44
os: linux
55

@@ -9,9 +9,10 @@ compiler: gcc
99

1010
addons:
1111
apt:
12+
sources:
13+
- sourceline: 'ppa:redislabs/redis'
1214
packages:
1315
- luarocks
14-
- redis
1516
- lsof
1617

1718
cache:
@@ -37,6 +38,10 @@ env:
3738
- NGINX_VERSION=1.17.8
3839

3940
before_install:
41+
# we can't update redis in addons.apt.packages as updated package automatically tries to start and immediately fails
42+
- echo exit 101 | sudo tee /usr/sbin/policy-rc.d
43+
- sudo chmod +x /usr/sbin/policy-rc.d
44+
- sudo apt-get install -y redis-server
4045
- sudo luarocks install luacov
4146
- sudo luarocks install lua-resty-redis
4247
- sudo luarocks install luacheck $LUACHECK_VER

0 commit comments

Comments
 (0)