xref: /PHP-7.2/.travis.yml (revision 61af3437)
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
24notifications:
25    email:
26       on_failure: change
27    irc:
28      template:
29        - "%{repository}#%{build_number} (%{branch} - %{commit} : %{author}): %{message} -  Change view : %{compare_url} - Build details : %{build_url}"
30      channels:
31        - "irc.efnet.org#php.pecl"
32      on_success: change
33      on_failure: always
34
35cache:
36    apt: true
37    ccache: true
38
39env:
40    global:
41      - MYSQL_TEST_HOST=127.0.0.1
42      - MYSQL_TEST_USER=travis
43      - PDO_MYSQL_TEST_DSN="mysql:host=127.0.0.1;dbname=test"
44      - PDO_MYSQL_TEST_USER=travis
45      - PDO_MYSQL_TEST_PASS=
46      - PDO_MYSQL_TEST_HOST=127.0.0.1
47      - REPORT_EXIT_STATUS=1
48    matrix:
49      - ENABLE_MAINTAINER_ZTS=0 ENABLE_DEBUG=0
50      - ENABLE_MAINTAINER_ZTS=1 ENABLE_DEBUG=1
51
52before_script:
53    - ccache --version
54    - ccache --zero-stats
55    - export USE_CCACHE=1
56    # Enable IPv6
57    - sudo sh -c 'echo 0 > /proc/sys/net/ipv6/conf/all/disable_ipv6'
58    # Compile PHP
59    - ./travis/compile.sh
60    # Setup Extensions
61    - . ./travis/ext/mysql/setup.sh
62    - . ./travis/ext/mysqli/setup.sh
63    - . ./travis/ext/pdo_mysql/setup.sh
64    - . ./travis/ext/pgsql/setup.sh
65    - . ./travis/ext/pdo_pgsql/setup.sh
66
67# Run PHPs run-tests.php
68script:
69    - ./sapi/cli/php run-tests.php -p `pwd`/sapi/cli/php $(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
70
71after_success:
72    - ccache --show-stats
73