xref: /PHP-8.1/.travis.yml (revision ccca5972)
1git:
2  quiet: true
3
4dist: bionic
5language: c
6os: linux
7addons:
8  apt:
9    packages:
10      - locales
11      - language-pack-de
12      - re2c
13      - ccache
14      - mysql-server
15      - libaspell-dev
16      - libbz2-dev
17      - libcurl4-gnutls-dev
18      - libenchant-dev
19      - libfreetype6-dev
20      - libgmp-dev
21      - libicu-dev
22      - libjpeg-dev
23      - libkrb5-dev
24      - libonig-dev
25      - libpng-dev
26      - libpq-dev
27      - libpspell-dev
28      - libsasl2-dev
29      - libsqlite3-dev
30      - libsodium-dev
31      - libtidy-dev
32      - libwebp-dev
33      - libxml2-dev
34      - libxpm-dev
35      - libxslt1-dev
36      - libzip-dev
37
38
39services:
40  - mysql
41  - postgresql
42
43notifications:
44    email:
45       on_failure: change
46    irc:
47      template:
48        - "%{repository}#%{build_number} (%{branch} - %{commit} : %{author}): %{message} -  Change view : %{compare_url} - Build details : %{build_url}"
49      channels:
50        - "irc.efnet.org#php.pecl"
51      on_success: change
52      on_failure: always
53
54cache:
55    apt: true
56    ccache: true
57
58env:
59    global:
60      - MYSQL_TEST_HOST=127.0.0.1
61      - MYSQL_TEST_USER=travis
62      - PDO_MYSQL_TEST_DSN="mysql:host=127.0.0.1;dbname=test"
63      - PDO_MYSQL_TEST_USER=travis
64      - PDO_MYSQL_TEST_PASS=
65      - PDO_MYSQL_TEST_HOST=127.0.0.1
66      - PDO_PGSQL_TEST_DSN="pgsql:host=localhost port=5432 dbname=test user=postgres password="
67      - REPORT_EXIT_STATUS=1
68
69jobs:
70    include:
71        - env: ENABLE_ZTS=1 ENABLE_DEBUG=1 S390X=1
72          arch: s390x
73
74before_script:
75    - ccache --version
76    - ccache --zero-stats
77    - export USE_CCACHE=1
78    # Enable IPv6
79    - sudo sh -c 'echo 0 > /proc/sys/net/ipv6/conf/all/disable_ipv6'
80    # Compile PHP
81    - travis_wait ./travis/compile.sh
82    # Setup Extensions
83    - ./travis/setup-mysql.sh
84    - ./travis/setup-pgsql.sh
85
86# Run PHPs run-tests.php
87script:
88    - ./travis/test.sh -d opcache.jit_buffer_size=16M -d opcache.jit=tracing
89    - sapi/cli/php -d extension_dir=`pwd`/modules -r 'dl("zend_test");'
90
91after_success:
92    - ccache --show-stats
93