xref: /PHP-7.0/.travis.yml (revision b53fb886)
1dist: trusty
2language: c
3sudo: false
4addons:
5  apt:
6    packages:
7      - locales
8      - language-pack-de
9      - re2c
10      - libgmp-dev
11      - libicu-dev
12      - libmcrypt-dev
13      - libtidy-dev
14      - libenchant-dev
15      - libaspell-dev
16      - libpspell-dev
17      - librecode-dev
18      - libsasl2-dev
19      - libxpm-dev
20      - libt1-dev
21
22notifications:
23    email:
24       on_failure: change
25    irc:
26      template:
27        - "%{repository}#%{build_number} (%{branch} - %{commit} : %{author}): %{message} -  Change view : %{compare_url} - Build details : %{build_url}"
28      channels:
29        - "irc.efnet.org#php.pecl"
30      on_success: change
31      on_failure: always
32
33cache:
34    - apt
35
36env:
37    global:
38      - MYSQL_TEST_HOST=127.0.0.1
39      - MYSQL_TEST_USER=travis
40      - PDO_MYSQL_TEST_DSN="mysql:host=127.0.0.1;dbname=test"
41      - PDO_MYSQL_TEST_USER=travis
42      - PDO_MYSQL_TEST_PASS=
43      - PDO_MYSQL_TEST_HOST=127.0.0.1
44      - REPORT_EXIT_STATUS=1
45    matrix:
46      - ENABLE_MAINTAINER_ZTS=0 ENABLE_DEBUG=0
47      - ENABLE_MAINTAINER_ZTS=1 ENABLE_DEBUG=1
48
49before_script:
50    # Compile PHP
51    - ./travis/compile.sh
52    # Setup Extensions
53    - . ./travis/ext/mysql/setup.sh
54    - . ./travis/ext/mysqli/setup.sh
55    - . ./travis/ext/pdo_mysql/setup.sh
56    - . ./travis/ext/pgsql/setup.sh
57    - . ./travis/ext/pdo_pgsql/setup.sh
58
59# Run PHPs run-tests.php
60script:
61    - ./sapi/cli/php run-tests.php -p `pwd`/sapi/cli/php $(if [ $ENABLE_DEBUG == 1 ]; 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
62