xref: /PHP-7.4/.travis.yml (revision 46d6daea)
161af3437SPhilip Prindevillegit:
261af3437SPhilip Prindeville  quiet: true
361af3437SPhilip Prindeville
470d47b3cSNikita Popovdist: xenial
5b0f7a46bSFerenc Kovacslanguage: c
6236ae06eSChristoph M. Beckersudo: required
785d34c32SFerenc Kovacsaddons:
885d34c32SFerenc Kovacs  apt:
985d34c32SFerenc Kovacs    packages:
1085d34c32SFerenc Kovacs      - locales
1185d34c32SFerenc Kovacs      - language-pack-de
1285d34c32SFerenc Kovacs      - re2c
13bd379df4SNikita Popov      - ccache
14bd379df4SNikita Popov      - mysql-server
15bd379df4SNikita Popov      - libaspell-dev
16bd379df4SNikita Popov      - libbz2-dev
17bd379df4SNikita Popov      - libcurl4-gnutls-dev
18bd379df4SNikita Popov      - libenchant-dev
19bd379df4SNikita Popov      - libfreetype6-dev
2085d34c32SFerenc Kovacs      - libgmp-dev
2185d34c32SFerenc Kovacs      - libicu-dev
22bd379df4SNikita Popov      - libjpeg-dev
23bd379df4SNikita Popov      - libkrb5-dev
24bd379df4SNikita Popov      - libonig-dev
25bd379df4SNikita Popov      - libpng-dev
26bd379df4SNikita Popov      - libpq-dev
27395ef4efSFerenc Kovacs      - libpspell-dev
2803e1e88dSFerenc Kovacs      - libsasl2-dev
296083a387SChristoph M. Becker      - libsqlite3-dev
302d15845aSNikita Popov      - libsodium-dev
31bd379df4SNikita Popov      - libtidy-dev
3219d8a6b7SNikita Popov      - libwebp-dev
33bd379df4SNikita Popov      - libxml2-dev
34bd379df4SNikita Popov      - libxpm-dev
35bd379df4SNikita Popov      - libxslt1-dev
36bd379df4SNikita Popov      - libzip-dev
37f15beda1SDavey Shafik
3870d47b3cSNikita Popov
3970d47b3cSNikita Popovservices:
4070d47b3cSNikita Popov  - mysql
4170d47b3cSNikita Popov  - postgresql
4270d47b3cSNikita Popov
431fc6b3c4SDavid Soria Parranotifications:
4437c329d7SPeter Kokot    email:
456b6a58c9SStanislav Malyshev       on_failure: change
46829ea23dSFerenc Kovacs    irc:
47daa0abafSFerenc Kovacs      template:
48daa0abafSFerenc Kovacs        - "%{repository}#%{build_number} (%{branch} - %{commit} : %{author}): %{message} -  Change view : %{compare_url} - Build details : %{build_url}"
49829ea23dSFerenc Kovacs      channels:
5092310223SFerenc Kovacs        - "irc.efnet.org#php.pecl"
5192310223SFerenc Kovacs      on_success: change
5292310223SFerenc Kovacs      on_failure: always
531fc6b3c4SDavid Soria Parra
5485243eeaSccache:
5585243eeaSc    apt: true
5685243eeaSc    ccache: true
5755169636SStanislav Malyshev
58f15beda1SDavey Shafikenv:
59f31d6bc0SStanislav Malyshev    global:
60f31d6bc0SStanislav Malyshev      - MYSQL_TEST_HOST=127.0.0.1
61f31d6bc0SStanislav Malyshev      - MYSQL_TEST_USER=travis
62817eebc7SStanislav Malyshev      - PDO_MYSQL_TEST_DSN="mysql:host=127.0.0.1;dbname=test"
63f31d6bc0SStanislav Malyshev      - PDO_MYSQL_TEST_USER=travis
64f31d6bc0SStanislav Malyshev      - PDO_MYSQL_TEST_PASS=
65a2d8ae9aSStanislav Malyshev      - PDO_MYSQL_TEST_HOST=127.0.0.1
66a8b4e40fSNikita Popov      - PDO_PGSQL_TEST_DSN="pgsql:host=localhost port=5432 dbname=test user=postgres password="
67f31d6bc0SStanislav Malyshev      - REPORT_EXIT_STATUS=1
68bd379df4SNikita Popov
69bd379df4SNikita Popovjobs:
70bd379df4SNikita Popov    include:
71bd379df4SNikita Popov        - env: ENABLE_MAINTAINER_ZTS=0 ENABLE_DEBUG=0
72bd379df4SNikita Popov          arch: amd64
73*46d6daeaSNikita Popov          if: type = cron
74bd379df4SNikita Popov        - env: ENABLE_MAINTAINER_ZTS=1 ENABLE_DEBUG=1
75bd379df4SNikita Popov          arch: amd64
76*46d6daeaSNikita Popov          if: type = cron
77bd379df4SNikita Popov        - env: ENABLE_MAINTAINER_ZTS=1 ENABLE_DEBUG=1 SKIP_IO_CAPTURE_TESTS=1 ARM64=1
78bd379df4SNikita Popov          arch: arm64
79*46d6daeaSNikita Popov          if: type = cron
80f15beda1SDavey Shafik
813966df7fSDavey Shafikbefore_script:
8285243eeaSc    - ccache --version
8385243eeaSc    - ccache --zero-stats
8485243eeaSc    - export USE_CCACHE=1
85f9d1d1f3SJakub Zelenka    # Enable IPv6
86f9d1d1f3SJakub Zelenka    - sudo sh -c 'echo 0 > /proc/sys/net/ipv6/conf/all/disable_ipv6'
87f15beda1SDavey Shafik    # Compile PHP
880f777c76SNikita Popov    - travis_wait ./travis/compile.sh
8985243eeaSc    # Setup Extensions
90a8b4e40fSNikita Popov    - ./travis/setup-mysql.sh
91a8b4e40fSNikita Popov    - ./travis/setup-pgsql.sh
92f15beda1SDavey Shafik
9337c329d7SPeter Kokot# Run PHPs run-tests.php
945ec5c80dSFerenc Kovacsscript:
957e14e033SNikita Popov    # ARM64 CI reports nproc=32, which is excessive.
967e14e033SNikita Popov    - if [ -z "$ARM64" ]; then export JOBS=$(nproc); else export JOBS=16; fi
977e14e033SNikita Popov    - ./sapi/cli/php run-tests.php -P -d extension=`pwd`/modules/zend_test.so $(if [ $ENABLE_DEBUG == 0 ]; then echo "-d opcache.enable_cli=1 -d opcache.protect_memory=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 -j$JOBS
98b2f49c69SNikita Popov    - sapi/cli/php -d extension_dir=`pwd`/modules -r 'dl("zend_test");'
9985243eeaSc
10085243eeaScafter_success:
10185243eeaSc    - ccache --show-stats
102