-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
70 lines (60 loc) · 2.94 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
language: php
dist: trusty
php:
- 7.2
- 7.1
- 7.0
- 5.6
- 5.5
- 5.4
# Run minimal tests to cover 32-bit, 64-bit, and clang
# Exclude everything else.
matrix:
exclude:
- php: 5.4
env: CC=gcc-4.8 CFLAGS="-g" VALGRIND=1
- php: 5.4
env: CC=gcc-4.8 CXX=g++-4.8 USE_32BIT=1 VALGRIND=1 PHP_CUSTOM=maintainer-zts PHP_CONFIGURE_ARGS='--disable-all --enable-maintainer-zts --enable-debug --enable-cgi --enable-session --enable-json'
- php: 5.5
env: CC=gcc-4.8 CFLAGS="-g -O3"
- php: 5.5
env: CC=gcc-4.8 CXX=g++-4.8 USE_32BIT=1 VALGRIND=1 PHP_CUSTOM=maintainer-zts PHP_CONFIGURE_ARGS='--disable-all --enable-maintainer-zts --enable-debug --enable-cgi --enable-session --enable-json'
- php: 5.6
env: CC=gcc-4.8 CFLAGS="-g -O3"
- php: 5.6
env: CC=gcc-4.8 CXX=g++-4.8 USE_32BIT=1 VALGRIND=1 PHP_CUSTOM=maintainer-zts PHP_CONFIGURE_ARGS='--disable-all --enable-maintainer-zts --enable-debug --enable-cgi --enable-session --enable-json'
- php: 7.0
env: CC=gcc-4.8 CFLAGS="-g -O3"
- php: 7.0
env: CC=gcc-4.8 CXX=g++-4.8 USE_32BIT=1 VALGRIND=1 PHP_CUSTOM=maintainer-zts PHP_CONFIGURE_ARGS='--disable-all --enable-maintainer-zts --enable-debug --enable-cgi --enable-session --enable-json'
- php: 7.2
env: CC=gcc-4.8 CFLAGS="-g -O3"
- php: 7.2
env: CC=gcc-4.8 CXX=g++-4.8 USE_32BIT=1 VALGRIND=1 PHP_CUSTOM=maintainer-zts PHP_CONFIGURE_ARGS='--disable-all --enable-maintainer-zts --enable-debug --enable-cgi --enable-session --enable-json'
cache:
directories:
- $HOME/travis_cache
env:
- CC=gcc-4.8 CFLAGS="-g -O3"
- CC=gcc-4.8 CFLAGS="-g" VALGRIND=1
- CC=gcc-4.8 CXX=g++-4.8 USE_32BIT=1 VALGRIND=1 PHP_CUSTOM=maintainer-zts PHP_CONFIGURE_ARGS='--disable-all --enable-maintainer-zts --enable-debug --enable-cgi --enable-session --enable-json'
install:
- sudo apt-get update -qq
- sudo apt-get install -qq $CC
# For 32-bit installations: Install multilib so it can be compiled, as well libc6-dbg:i386 so that valgrind will work.
- if [ "x$USE_32BIT" != "x" ]; then sudo apt-get install -y $CXX g++-multilib libc6-dev-i386 libc6-dbg:i386; export CC="$PWD/ci/gcc-32.sh"; export CXX="$PWD/ci/g++-32.sh"; $CC --version; fi
# If making a 32-bit build: Automatically determine and download the latest patch of each minor version we support.
- if [ "x$PHP_CUSTOM" != "x" ]; then export PHP_CUSTOM_VERSION=$(./ci/get_global_php_version.sh); echo "Version is $PHP_CUSTOM_VERSION"; ./ci/install_php_custom.sh || exit 1; export PATH="$(./ci/generate_php_install_dir.sh)/bin:$PATH"; export PHPRC=$PWD/ci/; else ./ci/wipe_travis_cache.sh; fi
- if [ "$VALGRIND" -eq 1 ]; then sudo apt-get install -qq valgrind; export TEST_PHP_ARGS="-m"; fi
- if [ "$VALGRIND" -eq 1 ]; then valgrind --version; fi
- $CC --version
before_script:
- $CC --version && ci/print_php_int_max.php
script:
- phpize
- ./configure --enable-runkit_object_id
- make
- REPORT_EXIT_STATUS=1 NO_INTERACTION=1 make test
branches:
only:
- master