forked from getsentry/sentry-php
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
62 lines (54 loc) · 1.48 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
language: php
php:
- 5.3
- 5.4
- 5.5
- 5.6
- 7.0
- 7.1
- nightly
- hhvm-3.12
matrix:
allow_failures:
- php: 7.1
- php: hhvm-3.12
- php: nightly
fast_finish: true
include:
- php: 7.0
env: REMOVE_XDEBUG="0" DISABLE_ASSERTIONS="1"
- php: 7.0
env: REMOVE_XDEBUG="1" DISABLE_ASSERTIONS="1"
- php: 7.1
env: REMOVE_XDEBUG="0" DISABLE_ASSERTIONS="1"
- php: 7.1
env: REMOVE_XDEBUG="1" DISABLE_ASSERTIONS="1"
- php: nightly
env: REMOVE_XDEBUG="0" DISABLE_ASSERTIONS="1"
- php: hhvm-3.12
env: REMOVE_XDEBUG="0" HHVM="1"
dist: trusty
exclude:
- php: hhvm-3.12
env: REMOVE_XDEBUG="0"
- php: hhvm-3.12
env: REMOVE_XDEBUG="1"
- php: nightly
env: REMOVE_XDEBUG="1"
env:
- REMOVE_XDEBUG="0"
- REMOVE_XDEBUG="1"
sudo: false
cache:
directories:
- $HOME/.composer/cache
before_install:
- if [ "$REMOVE_XDEBUG" = "1" ]; then phpenv config-rm xdebug.ini; fi
- if [ "$DISABLE_ASSERTIONS" = "1" ]; then echo 'zend.assertions = -1' >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini; fi
- if [[ ${TRAVIS_PHP_VERSION:0:1} > "5" ]] && [ "$HHVM" != "1" ]; then pecl install uopz; fi
- if [[ ${TRAVIS_PHP_VERSION:0:1} > "5" ]] && [ "$HHVM" != "1" ]; then echo "extension=uopz.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini; fi
- composer self-update
install: travis_retry composer install --no-interaction --prefer-source
script:
- composer phpcs
- composer tests