Merge pull request #33 from m6w6/fix-19
[m6w6/ext-pq] / .travis.yml
1 # autogenerated file; do not edit
2 language: c
3 sudo: false
4
5 addons:
6 postgresql: 9.4
7 apt:
8 packages:
9 - php5-cli
10 - php-pear
11 - valgrind
12
13 cache:
14 directories:
15 - $HOME/cache
16
17 before_cache:
18 - find $HOME/cache -name '*.gcda' -o -name '*.gcno' -delete
19
20 env:
21 global:
22 - PQ_DSN="postgres://postgres@localhost/test"
23 matrix:
24 - PHP=7.0 enable_debug=yes enable_maintainer_zts=yes enable_json=yes
25 - PHP=7.1 enable_debug=yes enable_maintainer_zts=yes enable_json=yes
26 - PHP=7.2 enable_debug=yes enable_maintainer_zts=yes enable_json=yes
27 - PHP=7.4 enable_debug=yes enable_maintainer_zts=yes enable_json=yes
28 - PHP=master enable_debug=yes enable_maintainer_zts=yes enable_json=yes
29 - PHP=7.3 enable_json=no
30 - PHP=7.3 enable_json=yes enable_debug=no enable_maintainer_zts=no
31 - PHP=7.3 enable_json=yes enable_debug=yes enable_maintainer_zts=no
32 - PHP=7.3 enable_json=yes enable_debug=no enable_maintainer_zts=yes
33 - PHP=7.3 enable_json=yes enable_debug=yes enable_maintainer_zts=yes
34 - PHP=7.3 enable_json=yes CFLAGS='-O0 -g --coverage' CXXFLAGS='-O0 -g --coverage'
35
36 matrix:
37 fast_finish: true
38 allow_failures:
39 - env: PHP=7.4 enable_debug=yes enable_maintainer_zts=yes enable_json=yes
40 - env: PHP=master enable_debug=yes enable_maintainer_zts=yes enable_json=yes
41
42 install:
43 - |
44 if test "$PHP" = master; then \
45 make -f travis/pecl/Makefile reconf; \
46 make -f travis/pecl/Makefile pecl-rm pecl-clean PECL=raphf:raphf:2.0.0; \
47 fi
48 - make -f travis/pecl/Makefile php || make -f travis/pecl/Makefile clean php
49 - make -f travis/pecl/Makefile pecl PECL=raphf:raphf:2.0.0
50
51 before_script:
52 - psql -U postgres -c "CREATE DATABASE test"
53
54 script:
55 - make -f travis/pecl/Makefile ext PECL=pq
56 - make -f travis/pecl/Makefile test
57
58 after_success:
59 - test -n "$CFLAGS" && cd src/.libs && bash <(curl -s https://codecov.io/bash) -X xcode -X coveragepy