Skip to content

Commit e9c6726

Browse files
authored
Merge pull request #323 from FriendsOfSymfony/cleanup-travisscript
cleanup travis script and naming of varnish config
2 parents d7b79e0 + 66f64ef commit e9c6726

File tree

4 files changed

+20
-19
lines changed

4 files changed

+20
-19
lines changed

.travis.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,15 @@ install:
3030
before_script:
3131
# Install Varnish
3232
- |
33+
set -e
3334
if [ "$VARNISH_VERSION" = "5.0.0" ]; then
3435
wget https://repo.varnish-cache.org/pkg/${VARNISH_VERSION}/varnish_${VARNISH_VERSION}-1_amd64.deb
3536
sudo dpkg -i varnish_${VARNISH_VERSION}-1_amd64.deb
3637
sudo apt-get update -qq
3738
sudo apt-get -f install
3839
else
3940
curl http://repo.varnish-cache.org/debian/GPG-key.txt | sudo apt-key add -
40-
echo "deb http://repo.varnish-cache.org/ubuntu/ precise varnish-${VARNISH_VERSION}" | sudo tee -a /etc/apt/sources.list
41+
echo "deb https://repo.varnish-cache.org/ubuntu/ trusty varnish-${VARNISH_VERSION}" | sudo tee -a /etc/apt/sources.list
4142
sudo apt-get update -qq
4243
sudo apt-get install -qq varnish
4344
fi

doc/_static/tabs.css

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ div.configuration-block ul.simple li.selected a {
2525
color: white;
2626
}
2727

28-
div.highlight-varnish3, div.highlight-varnish4 {
28+
div.highlight-varnish3, div.highlight-varnish {
2929
border: none !important;
3030
}
3131

@@ -55,10 +55,10 @@ div.highlight pre {
5555
color: white !important;
5656
}
5757

58-
div.highlight pre span.n,
59-
div.highlight pre span.na,
60-
div.highlight pre span.nb,
61-
div.highlight pre span.nc,
58+
div.highlight pre span.n,
59+
div.highlight pre span.na,
60+
div.highlight pre span.nb,
61+
div.highlight pre span.nc,
6262
div.highlight pre span.nf,
6363
div.highlight pre span.nx,
6464
div.highlight pre span.kn {
@@ -74,8 +74,8 @@ div.highlight pre span.k, div.highlight pre span.o {
7474
}
7575

7676
div.highlight pre span.mi,
77-
div.highlight pre span.s,
78-
div.highlight pre span.s1,
77+
div.highlight pre span.s,
78+
div.highlight pre span.s1,
7979
div.highlight pre span.s2,
8080
div.highlight pre span.sr {
8181
color: #56db3a;

doc/conf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
lexers['php'] = PhpLexer(startinline=True, linenos=1)
1111
lexers['varnish3'] = CLexer()
12-
lexers['varnish4'] = CLexer()
12+
lexers['varnish'] = CLexer()
1313

1414
on_rtd = os.environ.get('READTHEDOCS', None) == 'True'
1515
if not on_rtd: # only import and set the theme if we're building docs locally
@@ -263,5 +263,5 @@ def setup(app):
263263

264264
config_block = {
265265
'varnish3': 'Varnish 3',
266-
'varnish4': 'Varnish 4 & 5'
266+
'varnish': 'Varnish 4 & 5'
267267
}

doc/varnish-configuration.rst

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ which IPs are allowed to issue invalidation requests. To use the provided
1616
configuration fragments, this ACL has to be named ``invalidators``. The most
1717
simple ACL, valid for all Varnish versions from 3 onwards, looks as follows:
1818

19-
.. code-block:: varnish4
19+
.. code-block:: varnish
2020
2121
# /etc/varnish/your_varnish.vcl
2222
@@ -59,7 +59,7 @@ To enable support add the following to ``your_varnish.vcl``:
5959

6060
.. configuration-block::
6161

62-
.. code-block:: varnish4
62+
.. code-block:: varnish
6363
6464
include "path-to-config/varnish/fos_purge.vcl";
6565
@@ -100,7 +100,7 @@ To enable support, add the following to ``your_varnish.vcl``:
100100

101101
.. configuration-block::
102102

103-
.. code-block:: varnish4
103+
.. code-block:: varnish
104104
105105
include "path-to-config/varnish/fos_refresh.vcl";
106106
@@ -129,7 +129,7 @@ To enable support add the following to ``your_varnish.vcl``:
129129

130130
.. configuration-block::
131131

132-
.. code-block:: varnish4
132+
.. code-block:: varnish
133133
134134
include "path-to-config/varnish/fos_ban.vcl";
135135
@@ -186,7 +186,7 @@ VCL will look like this:
186186
.. configuration-block::
187187

188188
.. literalinclude:: ../resources/config/varnish/fos_ban.vcl
189-
:language: varnish4
189+
:language: varnish
190190
:emphasize-lines: 17-22,49-50
191191
:linenos:
192192

@@ -210,7 +210,7 @@ To enable support add the following to ``your_varnish.vcl``:
210210

211211
.. configuration-block::
212212

213-
.. code-block:: varnish4
213+
.. code-block:: varnish
214214
215215
include "path-to-config/varnish/fos_user_context.vcl";
216216
include "path-to-config/varnish/fos_user_context_url.vcl";
@@ -294,7 +294,7 @@ To make the hash request cacheable, you must extract a stable user session id
294294
*before* calling ``fos_user_context_recv``. You can do this as
295295
`explained in the Varnish documentation`_:
296296

297-
.. code-block:: varnish4
297+
.. code-block:: varnish
298298
:linenos:
299299
300300
sub vcl_recv {
@@ -329,7 +329,7 @@ inline C enabled: ``-p vcc_allow_inline_c=on``. Then add the following to
329329

330330
.. configuration-block::
331331

332-
.. code-block:: varnish4
332+
.. code-block:: varnish
333333
334334
include "path-to-config/varnish/fos_custom_ttl.vcl";
335335
@@ -362,7 +362,7 @@ To enable support add the following to ``your_varnish.vcl``:
362362

363363
.. configuration-block::
364364

365-
.. code-block:: varnish4
365+
.. code-block:: varnish
366366
367367
include "path-to-config/varnish/fos_debug.vcl";
368368

0 commit comments

Comments
 (0)