move to PHP-7.4 as current GA
[m6w6/ext-apfd] / gen_travis_yml.php
1 #!/usr/bin/env php
2 # autogenerated file; do not edit
3 language: c
4 sudo: false
5 dist: xenial
6
7 addons:
8 apt:
9 packages:
10 - php-cli
11 - php-pear
12 - valgrind
13
14 env:
15 matrix:
16 <?php
17
18 $cur = "7.4";
19 $gen = include "./travis/pecl/gen-matrix.php";
20 $env = $gen([
21 "PHP" => ["5.6", "7.0", "7.1", "7.2", "7.3", "master"],
22 "enable_debug" => "yes",
23 "enable_maintainer_zts" => "yes",
24 ], [
25 "PHP" => $cur,
26 "enable_debug",
27 "enable_maintainer_zts"
28 ], [
29 "CFLAGS" => "'-O0 -g --coverage'",
30 "CXXFLAGS" => "'-O0 -g --coverage'",
31 "PHP" => $cur,
32 ]);
33 foreach ($env as $grp) {
34 foreach ($grp as $e) {
35 printf(" - %s\n", $e);
36 }
37 }
38
39 ?>
40
41 cache:
42 directories:
43 - $HOME/cache
44
45 before_cache:
46 - find $HOME/cache -name '*.gcda' -o -name '*.gcno' -delete
47
48 install:
49 - make -f travis/pecl/Makefile php
50
51 script:
52 - make -f travis/pecl/Makefile ext PECL=apfd
53 - make -f travis/pecl/Makefile test
54
55 after_success:
56 - test -n "$CFLAGS" && cd .libs && bash <(curl -s https://codecov.io/bash) -X xcode -X coveragepy
57