2018-07-08 16:55:54 +00:00
|
|
|
git:
|
|
|
|
quiet: true
|
|
|
|
|
2020-09-04 10:34:47 +00:00
|
|
|
dist: bionic
|
2014-05-18 16:15:51 +00:00
|
|
|
language: c
|
2020-02-23 02:27:05 +00:00
|
|
|
os: linux
|
2015-08-23 20:47:51 +00:00
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
packages:
|
|
|
|
- locales
|
|
|
|
- language-pack-de
|
|
|
|
- re2c
|
2019-10-23 10:58:21 +00:00
|
|
|
- ccache
|
|
|
|
- mysql-server
|
|
|
|
- libaspell-dev
|
|
|
|
- libbz2-dev
|
|
|
|
- libcurl4-gnutls-dev
|
|
|
|
- libenchant-dev
|
|
|
|
- libfreetype6-dev
|
2015-08-23 20:47:51 +00:00
|
|
|
- libgmp-dev
|
|
|
|
- libicu-dev
|
2019-10-23 10:58:21 +00:00
|
|
|
- libjpeg-dev
|
|
|
|
- libkrb5-dev
|
|
|
|
- libonig-dev
|
|
|
|
- libpng-dev
|
|
|
|
- libpq-dev
|
2015-10-19 20:47:23 +00:00
|
|
|
- libpspell-dev
|
2015-10-19 21:02:52 +00:00
|
|
|
- libsasl2-dev
|
2018-10-06 10:36:55 +00:00
|
|
|
- libsqlite3-dev
|
2020-02-24 10:00:58 +00:00
|
|
|
- libsodium-dev
|
2019-10-23 10:58:21 +00:00
|
|
|
- libtidy-dev
|
2019-01-11 13:15:18 +00:00
|
|
|
- libwebp-dev
|
2019-10-23 10:58:21 +00:00
|
|
|
- libxml2-dev
|
|
|
|
- libxpm-dev
|
|
|
|
- libxslt1-dev
|
|
|
|
- libzip-dev
|
2012-04-27 14:36:33 +00:00
|
|
|
|
2018-09-17 11:37:33 +00:00
|
|
|
|
|
|
|
services:
|
|
|
|
- mysql
|
|
|
|
- postgresql
|
|
|
|
|
2012-06-03 17:11:10 +00:00
|
|
|
notifications:
|
2018-10-13 12:17:28 +00:00
|
|
|
email:
|
2014-05-14 00:14:06 +00:00
|
|
|
on_failure: change
|
2015-04-05 20:54:30 +00:00
|
|
|
irc:
|
2015-07-26 20:06:26 +00:00
|
|
|
template:
|
|
|
|
- "%{repository}#%{build_number} (%{branch} - %{commit} : %{author}): %{message} - Change view : %{compare_url} - Build details : %{build_url}"
|
2015-04-05 20:54:30 +00:00
|
|
|
channels:
|
2015-04-08 17:00:03 +00:00
|
|
|
- "irc.efnet.org#php.pecl"
|
|
|
|
on_success: change
|
|
|
|
on_failure: always
|
2012-06-03 17:11:10 +00:00
|
|
|
|
2016-05-04 06:09:41 +00:00
|
|
|
cache:
|
|
|
|
apt: true
|
|
|
|
ccache: true
|
2014-07-07 16:35:37 +00:00
|
|
|
|
2012-04-27 14:36:33 +00:00
|
|
|
env:
|
2013-08-13 05:57:06 +00:00
|
|
|
global:
|
|
|
|
- MYSQL_TEST_HOST=127.0.0.1
|
|
|
|
- MYSQL_TEST_USER=travis
|
2013-08-13 16:01:17 +00:00
|
|
|
- PDO_MYSQL_TEST_DSN="mysql:host=127.0.0.1;dbname=test"
|
2013-08-13 05:57:06 +00:00
|
|
|
- PDO_MYSQL_TEST_USER=travis
|
|
|
|
- PDO_MYSQL_TEST_PASS=
|
2013-08-25 06:14:48 +00:00
|
|
|
- PDO_MYSQL_TEST_HOST=127.0.0.1
|
2019-10-25 09:14:56 +00:00
|
|
|
- PDO_PGSQL_TEST_DSN="pgsql:host=localhost port=5432 dbname=test user=postgres password="
|
2013-08-13 05:57:06 +00:00
|
|
|
- REPORT_EXIT_STATUS=1
|
2019-10-23 10:58:21 +00:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
include:
|
2019-10-25 14:38:13 +00:00
|
|
|
- env: ENABLE_ZTS=0 ENABLE_DEBUG=0
|
2019-10-23 10:58:21 +00:00
|
|
|
arch: amd64
|
2020-11-27 13:15:34 +00:00
|
|
|
if: type = cron
|
2019-10-25 14:38:13 +00:00
|
|
|
- env: ENABLE_ZTS=1 ENABLE_DEBUG=1
|
2019-10-23 10:58:21 +00:00
|
|
|
arch: amd64
|
2020-11-27 13:15:34 +00:00
|
|
|
if: type = cron
|
2019-10-25 14:38:13 +00:00
|
|
|
- env: ENABLE_ZTS=1 ENABLE_DEBUG=1 SKIP_IO_CAPTURE_TESTS=1 ARM64=1
|
2019-10-23 10:58:21 +00:00
|
|
|
arch: arm64
|
2020-09-21 10:42:48 +00:00
|
|
|
if: type = cron
|
2020-09-04 13:22:11 +00:00
|
|
|
- env: ENABLE_ZTS=1 ENABLE_DEBUG=1 SKIP_IO_CAPTURE_TESTS=1 S390X=1
|
|
|
|
arch: s390x
|
|
|
|
if: type = cron
|
2012-04-27 14:36:33 +00:00
|
|
|
|
2012-04-26 11:48:49 +00:00
|
|
|
before_script:
|
2016-05-04 06:09:41 +00:00
|
|
|
- ccache --version
|
|
|
|
- ccache --zero-stats
|
|
|
|
- export USE_CCACHE=1
|
2018-06-08 19:09:33 +00:00
|
|
|
# Enable IPv6
|
|
|
|
- sudo sh -c 'echo 0 > /proc/sys/net/ipv6/conf/all/disable_ipv6'
|
2012-04-27 14:36:33 +00:00
|
|
|
# Compile PHP
|
2019-04-12 08:05:15 +00:00
|
|
|
- travis_wait ./travis/compile.sh
|
2016-05-04 06:09:41 +00:00
|
|
|
# Setup Extensions
|
2019-10-25 09:14:56 +00:00
|
|
|
- ./travis/setup-mysql.sh
|
|
|
|
- ./travis/setup-pgsql.sh
|
2012-04-27 14:36:33 +00:00
|
|
|
|
2018-10-13 12:17:28 +00:00
|
|
|
# Run PHPs run-tests.php
|
2014-06-09 13:30:09 +00:00
|
|
|
script:
|
2020-04-21 10:03:49 +00:00
|
|
|
# ARM64 CI reports nproc=32, which is excessive.
|
|
|
|
- if [ -z "$ARM64" ]; then export JOBS=$(nproc); else export JOBS=16; fi
|
2020-04-29 13:16:36 +00:00
|
|
|
- ./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 opcache.jit_buffer_size=16M -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
|
2019-04-18 10:24:34 +00:00
|
|
|
- sapi/cli/php -d extension_dir=`pwd`/modules -r 'dl("zend_test");'
|
2016-05-04 06:09:41 +00:00
|
|
|
|
|
|
|
after_success:
|
|
|
|
- ccache --show-stats
|