-
Notifications
You must be signed in to change notification settings - Fork 389
/
.travis.yml
44 lines (36 loc) · 1.37 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
language: c
os:
- linux
- osx
env:
- PT_PHP_VERSION=7.1.2
- PT_PHP_VERSION=7.0.16
- PT_PHP_VERSION=5.6.30
- PT_PHP_VERSION=5.5.38
- PT_PHP_VERSION=5.4.37
- PT_PHP_VERSION=5.3.29
- PT_PHP_VERSION=5.2.17
matrix:
exclude:
- os: osx
env: PT_PHP_VERSION=5.2.17
- os: osx
env: PT_PHP_VERSION=5.3.29
cache:
directories:
- php_source
- php_build
before_install:
- PT_PHP_SRC=${TRAVIS_BUILD_DIR}/php_source/php-${PT_PHP_VERSION}
- PT_PHP_PATH=${TRAVIS_BUILD_DIR}/php_build/php-${PT_PHP_VERSION}
- PT_PHP_BIN=${PT_PHP_PATH}/bin/php
# build PHP without ZTS by ourselves...
- mkdir -p php_source php_build
- (cd php_source && ls -l php-${PT_PHP_VERSION}.tar.bz2 || ../.travis/php_get.sh ${PT_PHP_VERSION})
- (cd php_source && ls -l ${PT_PHP_BIN} || ../.travis/php_build.sh ${TRAVIS_BUILD_DIR}/php_build php-${PT_PHP_VERSION}.tar.bz2)
before_script:
- ./.travis/ext_build.sh extension ${PT_PHP_PATH}
- (cd extension && make cli)
script:
- (cd ${PT_PHP_SRC} && TEST_PHP_EXECUTABLE=${PT_PHP_BIN} ${PT_PHP_BIN} -n run-tests.php -q -n -d extension=trace.so -g "FAIL" --show-diff --set-timeout 120 tests Zend/tests; true)
- (cd extension && REPORT_EXIT_STATUS=1 TEST_PHP_EXECUTABLE=${PT_PHP_BIN} ${PT_PHP_BIN} -n run-tests.php -q -n -d extension=trace.so --show-diff)