Skip to content

Commit 23c6639

Browse files
authored
Merge pull request #380 from FriendsOfSymfony/fix-1.4-build
switch legacy branch to new varnish debian repository
2 parents de883f0 + 36cd4f9 commit 23c6639

File tree

2 files changed

+9
-12
lines changed

2 files changed

+9
-12
lines changed

.travis.yml

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
language: php
22

33
php:
4-
- 5.3
54
- 5.4
65
- 5.5
76
- 5.6
@@ -14,11 +13,9 @@ env:
1413

1514
matrix:
1615
include:
17-
- php: hhvm
18-
dist: trusty
1916
- php: 5.5
2017
env: VARNISH_VERSION=3.0
21-
- php: 5.3
18+
- php: 5.4
2219
env: SYMFONY_VERSION=2.3.* VARNISH_VERSION=4.0 COMPOSER_FLAGS="--prefer-lowest"
2320

2421
branches:
@@ -32,11 +29,13 @@ before_script:
3229
- composer update $COMPOSER_FLAGS --dev --prefer-source --no-interaction
3330
- bash -c "if [[ '$TRAVIS_PHP_VERSION' == '7.'* ]] ; then wget https://phar.phpunit.de/phpunit-5.7.phar; fi"
3431
# Install Varnish
35-
- curl http://repo.varnish-cache.org/debian/GPG-key.txt | sudo apt-key add -
36-
- echo "deb http://repo.varnish-cache.org/ubuntu/ precise varnish-${VARNISH_VERSION}" | sudo tee -a /etc/apt/sources.list
37-
- sudo apt-get update -qq
38-
- sudo apt-get install -qq varnish python-sphinx enchant
39-
- sudo pip install -r doc/requirements.txt
32+
- |
33+
set -e
34+
curl -L https://packagecloud.io/varnishcache/varnish${VARNISH_VERSION//./}/gpgkey | sudo apt-key add -
35+
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
36+
cat /etc/apt/sources.list
37+
sudo apt-get update -qq
38+
sudo apt-get install -qq varnish
4039
# Install NGINX
4140
- sh ./tests/install-nginx.sh
4241
# Starting webserver
@@ -46,8 +45,6 @@ before_script:
4645
script:
4746
- bash -c "if [[ '$TRAVIS_PHP_VERSION' == '7.'* ]] ; then php phpunit-5.7.phar --coverage-clover=coverage.clover; fi"
4847
- sh -c "if [ '$TRAVIS_PHP_VERSION' \< '7' ]; then phpunit --coverage-clover=coverage.clover; fi"
49-
- make -C doc SPHINXOPTS='-nW' html
50-
- make -C doc spelling
5148

5249
after_script:
5350
- wget https://scrutinizer-ci.com/ocular.phar

src/Test/Proxy/VarnishProxy.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public function stop()
6767
// Ignore if command fails when Varnish wasn't running
6868
}
6969
unlink($this->pid);
70-
$this->waitUntil($this->ip, $this->getPort(), 2000);
70+
$this->waitUntil($this->ip, $this->getPort(), 8000);
7171
}
7272
}
7373

0 commit comments

Comments
 (0)