forked from FriendsOfSymfony/FOSHttpCache
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
52 lines (43 loc) · 1.59 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
language: php
php:
- 5.4
- 5.5
- 5.6
- hhvm
- 7
env:
- VARNISH_VERSION=4.0
matrix:
include:
- php: 5.4
env: SYMFONY_VERSION=2.3.* VARNISH_VERSION=3.0 COMPOSER_FLAGS="--prefer-lowest"
branches:
only:
- master
# Build maintenance branches for older releases if needed. such branches should be named like "1.2"
- '/^\d+\.\d+$/'
install:
- if [[ "$TRAVIS_PHP_VERSION" == "5.4" || "$TRAVIS_PHP_VERSION" == "hhvm" ]]; then composer remove "php-http/guzzle6-adapter" --dev --no-update; fi
- if [[ "$TRAVIS_PHP_VERSION" == "5.4" || "$TRAVIS_PHP_VERSION" == "hhvm" ]]; then composer require "php-http/guzzle5-adapter" --dev --no-update; fi
- composer update $COMPOSER_FLAGS --prefer-source --no-interaction
before_script:
# Install Varnish
- curl http://repo.varnish-cache.org/debian/GPG-key.txt | sudo apt-key add -
- echo "deb http://repo.varnish-cache.org/ubuntu/ precise varnish-${VARNISH_VERSION}" | sudo tee -a /etc/apt/sources.list
- sudo apt-get update -qq
- sudo apt-get install -qq varnish python-sphinx enchant
- sudo pip install -r doc/requirements.txt
# Install NGINX
- sh ./tests/install-nginx.sh
# Starting webserver
- sh -c "if [ '$TRAVIS_PHP_VERSION' = 'hhvm' ]; then ./tests/ci/install-apache-hhvm.sh; fi"
script:
- phpunit --coverage-clover=coverage.clover
- make -C doc SPHINXOPTS='-nW' html
- make -C doc spelling
after_script:
- wget https://scrutinizer-ci.com/ocular.phar
- php ocular.phar code-coverage:upload --format=php-clover coverage.clover
after_failure:
- cat /tmp/fos_nginx_error.log
- cat /tmp/fos_nginx_access.log