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