.travis.yml 2.3 KB

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