-
Notifications
You must be signed in to change notification settings - Fork 120
/
gen_travis_yml.php
executable file
·61 lines (52 loc) · 1.08 KB
/
gen_travis_yml.php
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
#!/usr/bin/env php
# autogenerated file; do not edit
language: c
addons:
apt:
packages:
- php-cli
- php-pear
env:
matrix:
<?php
$cur = "8.0";
$gen = include "./travis/pecl/gen-matrix.php";
$env = $gen([
"PHP" => ["7.0", "7.1", "7.2", "7.3", "7.4"],
"enable_debug" => "yes",
"enable_maintainer_zts" => "yes",
"enable_json" => "yes"
], [
"PHP" => "master",
"enable_debug" => "yes",
"enable_zts" => "yes",
"enable_json" => "yes"
], [
"PHP" => $cur,
"enable_debug",
"enable_zts",
"enable_json" => "yes"
], [
"CFLAGS" => "'-O0 -g --coverage'",
"CXXFLAGS" => "'-O0 -g --coverage'",
"PHP" => $cur,
"enable_json" => "yes"
]);
foreach ($env as $grp) {
foreach ($grp as $e) {
printf(" - %s\n", $e);
}
}
?>
cache:
directories:
- $HOME/cache
before_cache:
- find $HOME/cache -name '*.gcda' -o -name '*.gcno' -delete
install:
- make -f travis/pecl/Makefile php
script:
- make -f travis/pecl/Makefile ext PECL=msgpack
- make -f travis/pecl/Makefile test
after_success:
- test -n "$CFLAGS" && cd .libs && bash <(curl -s https://codecov.io/bash) -X xcode -X coveragepy