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