8000 switch to new varnish debian repository · FriendsOfSymfony/FOSHttpCache@7d3f041 · GitHub
[go: up one dir, main page]

Skip to content

Commit 7d3f041

Browse files
committed
switch to new varnish debian repository
1 parent 10aa2f5 commit 7d3f041

File tree

1 file changed

+7
-14
lines changed

1 file changed

+7
-14
lines changed

.travis.yml

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@ php:
1212
- 7.2
1313

1414
env:
15-
- VARNISH_VERSION=5.0.0
15+
- VARNISH_VERSION=5.0
1616

1717
matrix:
1818
include:
1919
- php: 5.6
2020
env: SYMFONY_VERSION=2.7.* VARNISH_VERSION=3.0 COMPOSER_FLAGS="--prefer-lowest"
2121
- php: 7.0
2222
env:
23-
- VARNISH_VERSION=4.1
23+
- VARNISH_VERSION=41
2424
- DOCCHECK=true
2525

2626
branches:
@@ -36,18 +36,11 @@ before_script:
3636
# Install Varnish
3737
- |
3838
set -e
39-
if [ "$VARNISH_VERSION" = "5.0.0" ]; then
40-
wget https://repo.varnish-cache.org/pkg/${VARNISH_VERSION}/varnish_${VARNISH_VERSION}-1_amd64.deb
41-
sudo apt-get install -qq libjemalloc1
42-
sudo dpkg -i varnish_${VARNISH_VERSION}-1_amd64.deb
43-
sudo apt-get update -qq
44-
sudo apt-get -f install
45-
else
46-
curl http://repo.varnish-cache.org/debian/GPG-key.txt | sudo apt-key add -
47-
echo "deb https://repo.varnish-cache.org/ubuntu/ trusty varnish-${VARNISH_VERSION}" | sudo tee -a /etc/apt/sources.list
48-
sudo apt-get update -qq
49-
sudo apt-get install -qq varnish
50-
fi
39+
curl -L https://packagecloud.io/varnishcache/varnish${VARNISH_VERSION//./}/gpgkey | sudo apt-key add -
40+
curl -L "https://packagecloud.io/install/repositories/varnishcache/varnish${VARNISH_VERSION//./}/config_file.list?os=ubuntu&dist=trusty&source=script" | sudo tee -a /etc/apt/sources.list
41+
cat /etc/apt/sources.list
42+
sudo apt-get update -qq
43+
sudo apt-get install -qq varnish
5144
- if [ "$DOCCHECK" = true ]; then sudo apt-get install -qq python-sphinx enchant; fi
5245
- if [ "$DOCCHECK" = true ]; then sudo pip install -r doc/requirements.txt; fi
5346
# Install NGINX

0 commit comments

Comments
 (0)
0