forked from egeloen/ivory-http-adapter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
76 lines (69 loc) · 3.24 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
language: php
sudo: false
php:
- 5.4
- 5.5
- 5.6
- 7.0
- hhvm
env:
global:
- TEST_SERVER=http://127.0.0.1:10000/server.php
- SYMFONY_DEPRECATIONS_HELPER=weak
- SYMFONY_VERSION=2.3.*
- GUZZLE_VERSION=6.*
- COMPOSER_PREFER_LOWEST=false
- ENABLE_CURL=true
install:
- if [[ "$TRAVIS_PHP_VERSION" != "hhvm" ]] && [[ "$TRAVIS_PHP_VERSION" != "7.0" ]]; then printf "\n" | pecl install propro-1.0.2; fi
- if [[ "$TRAVIS_PHP_VERSION" != "hhvm" ]] && [[ "$TRAVIS_PHP_VERSION" != "7.0" ]]; then printf "\n" | pecl install raphf-1.1.2; fi
- if [[ "$TRAVIS_PHP_VERSION" != "hhvm" ]] && [[ "$TRAVIS_PHP_VERSION" != "7.0" ]]; then printf "\n" | pecl install pecl_http-2.5.6; fi
- if [[ "$TRAVIS_PHP_VERSION" = "7.0" ]]; then printf "\n" | pecl install propro; fi
- if [[ "$TRAVIS_PHP_VERSION" = "7.0" ]]; then printf "\n" | pecl install raphf; fi
- if [[ "$TRAVIS_PHP_VERSION" = "7.0" ]]; then printf "\n" | pecl install pecl_http; fi
- if [[ "$ENABLE_CURL" = false ]]; then mkdir -p ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d; fi
- if [[ "$ENABLE_CURL" = false ]]; then echo "disable_functions = curl_init" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini; fi
- if [[ "$TRAVIS_PHP_VERSION" = "5.6" ]]; then echo "always_populate_raw_post_data = -1" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini; fi
- php -S 127.0.0.1:10000 -t tests/Fixtures > /dev/null 2>&1 &
- composer require symfony/event-dispatcher:${SYMFONY_VERSION} --no-update --dev
- if [[ "$SYMFONY_VERSION" = 3\.* ]]; then composer remove --dev --no-update guzzle/guzzle; fi
- if [[ "$GUZZLE_VERSION" != "6.*" ]]; then composer require guzzlehttp/guzzle:${GUZZLE_VERSION} --no-update --dev; fi
- if [[ "$SYMFONY_VERSION" = *dev* ]]; then sed -i "s/\"MIT\"/\"MIT\",\"minimum-stability\":\"dev\"/g" composer.json; fi
- composer update --prefer-source `if [[ $COMPOSER_PREFER_LOWEST = true ]]; then echo "--prefer-lowest --prefer-stable"; fi`
script: bin/phpunit --configuration phpunit.travis.xml --coverage-clover clover.xml
after_script:
- sed -i "/^disable_functions =.*$/d" ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
- bin/coveralls -v
matrix:
include:
- php: 5.6
env: GUZZLE_VERSION=4.*
- php: 5.6
env: GUZZLE_VERSION=5.*
- php: 5.4
env: COMPOSER_PREFER_LOWEST=true
- php: 5.6
env: ENABLE_CURL=false
- php: 5.6
env: SYMFONY_VERSION=2.1.*
- php: 5.6
env: SYMFONY_VERSION=2.2.*
- php: 5.6
env: SYMFONY_VERSION=2.4.*
- php: 5.6
env: SYMFONY_VERSION=2.5.*
- php: 5.6
env: SYMFONY_VERSION=2.6.*
- php: 5.6
env: SYMFONY_VERSION=2.7.*
- php: 5.6
env: SYMFONY_VERSION=2.8.* SYMFONY_DEPRECATIONS_HELPER=strict
- php: 5.6
env: SYMFONY_VERSION=3.0.* SYMFONY_DEPRECATIONS_HELPER=strict
- php: 5.6
env: SYMFONY_VERSION=3.1.*@dev SYMFONY_DEPRECATIONS_HELPER=strict
allow_failures:
- php: hhvm
- env: SYMFONY_VERSION=3.1.*@dev SYMFONY_DEPRECATIONS_HELPER=strict
notifications:
email: [email protected]