forked from xdebug/xdebug
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
48 lines (39 loc) · 1.21 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
sudo: false
language: php
php:
- 7.0
- 7.1
- 7.2
- 7.3
- nightly
matrix:
allow_failures:
- php: nightly
env:
- USE_OPCACHE=0
- USE_OPCACHE=1
before_script:
- phpenv config-rm xdebug.ini || echo "xdebug not available"
- sh -e ./.travis.scripts/compile.sh
# Add an IPv6 config - see the corresponding Travis issue
# https://github.com/travis-ci/travis-ci/issues/8361
- if [ "${TRAVIS_OS_NAME}" == "linux" ]; then
sudo sh -c 'echo 0 > /proc/sys/net/ipv6/conf/all/disable_ipv6';
fi
notifications:
email:
script:
- sudo sh -c 'echo "\n::1 localhost\n" >> /etc/hosts'
- export TEST_PHP_EXECUTABLE=`make findphp`
- export PATH=`dirname $TEST_PHP_EXECUTABLE`:$PATH
- TEST_PHP_ARGS="-n -d foo=1"
- if [[ "$USE_OPCACHE" == "1" ]]; then TEST_PHP_ARGS="$TEST_PHP_ARGS -d zend_extension=opcache.so -d opcache.enable=1 -d opcache.enable_cli=1"; fi
- export TEST_PHP_ARGS="$TEST_PHP_ARGS -d zend_extension=$PWD/modules/xdebug.so"
- export REPORT_EXIT_STATUS=1
- $TEST_PHP_EXECUTABLE $TEST_PHP_ARGS -v
- $TEST_PHP_EXECUTABLE -n run-tests.php -q -x --show-diff
after_script:
- ./.travis.scripts/show-errors.sh
notifications:
irc: "chat.freenode.net#xdebug"