1git: 2 quiet: true 3 4dist: trusty 5language: c 6sudo: required 7addons: 8 apt: 9 packages: 10 - locales 11 - language-pack-de 12 - re2c 13 - libgmp-dev 14 - libicu-dev 15 - libtidy-dev 16 - libenchant-dev 17 - libaspell-dev 18 - libpspell-dev 19 - librecode-dev 20 - libsasl2-dev 21 - libxpm-dev 22 - libt1-dev 23 - libzip-dev 24 25notifications: 26 email: 27 on_failure: change 28 irc: 29 template: 30 - "%{repository}#%{build_number} (%{branch} - %{commit} : %{author}): %{message} - Change view : %{compare_url} - Build details : %{build_url}" 31 channels: 32 - "irc.efnet.org#php.pecl" 33 on_success: change 34 on_failure: always 35 36cache: 37 apt: true 38 ccache: true 39 40env: 41 global: 42 - MYSQL_TEST_HOST=127.0.0.1 43 - MYSQL_TEST_USER=travis 44 - PDO_MYSQL_TEST_DSN="mysql:host=127.0.0.1;dbname=test" 45 - PDO_MYSQL_TEST_USER=travis 46 - PDO_MYSQL_TEST_PASS= 47 - PDO_MYSQL_TEST_HOST=127.0.0.1 48 - REPORT_EXIT_STATUS=1 49 matrix: 50 - ENABLE_MAINTAINER_ZTS=0 ENABLE_DEBUG=0 51 - ENABLE_MAINTAINER_ZTS=1 ENABLE_DEBUG=1 52 53before_script: 54 - ccache --version 55 - ccache --zero-stats 56 - export USE_CCACHE=1 57 # Enable IPv6 58 - sudo sh -c 'echo 0 > /proc/sys/net/ipv6/conf/all/disable_ipv6' 59 # Compile PHP 60 - ./travis/compile.sh 61 # Setup Extensions 62 - . ./travis/ext/mysql/setup.sh 63 - . ./travis/ext/mysqli/setup.sh 64 - . ./travis/ext/pdo_mysql/setup.sh 65 - . ./travis/ext/pgsql/setup.sh 66 - . ./travis/ext/pdo_pgsql/setup.sh 67 68# Run PHPs run-tests.php 69script: 70 - ./sapi/cli/php run-tests.php -P -d extension=`pwd`/modules/zend_test.so $(if [ $ENABLE_DEBUG == 0 ]; then echo "-d opcache.enable_cli=1 -d zend_extension=`pwd`/modules/opcache.so"; fi) -g "FAIL,XFAIL,BORK,WARN,LEAK,SKIP" --offline --show-diff --show-slow 1000 --set-timeout 120 71 - sapi/cli/php -d extension_dir=`pwd`/modules -r 'dl("zend_test");' 72 73after_success: 74 - ccache --show-stats 75