xref: /PHP-7.1/.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      - libmcrypt-dev
16      - libtidy-dev
17      - libenchant-dev
18      - libaspell-dev
19      - libpspell-dev
20      - librecode-dev
21      - libsasl2-dev
22      - libxpm-dev
23      - libt1-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
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    # Enable IPv6
54    - sudo sh -c 'echo 0 > /proc/sys/net/ipv6/conf/all/disable_ipv6'
55    # Compile PHP
56    - ./travis/compile.sh
57    # Setup Extensions
58    - . ./travis/ext/mysql/setup.sh
59    - . ./travis/ext/mysqli/setup.sh
60    - . ./travis/ext/pdo_mysql/setup.sh
61    - . ./travis/ext/pgsql/setup.sh
62    - . ./travis/ext/pdo_pgsql/setup.sh
63
64# Run PHPs run-tests.php
65script:
66    - ./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 --set-timeout 120
67