6513aefb5e97335faaf835bb54e63a5803f218bd
[m6w6/ext-pq] / scripts / gen_travis_yml.php
1 #!/usr/bin/env php
2 # autogenerated file; do not edit
3 language: c
4 sudo: false
5
6 addons:
7 postgresql: 9.4
8 apt:
9 packages:
10 - php5-cli
11 - php-pear
12 - valgrind
13
14 compiler:
15 - gcc
16 - clang
17
18 env:
19 global:
20 - PQ_DSN="postgres://postgres@localhost/test"
21 matrix:
22 <?php
23
24 $gen = include "./travis/pecl/gen-matrix.php";
25 $cur = "7.2";
26 $env = $gen([
27 "PHP" => ["7.0", "7.1", "master"],
28 "enable_debug" => "yes",
29 "enable_maintainer_zts" => "yes",
30 "enable_json" => "yes",
31 ], [
32 "PHP" => $cur,
33 "enable_json" => "no",
34 ], [
35 "PHP" => $cur,
36 "enable_json" => "yes",
37 "enable_debug",
38 "enable_maintainer_zts"
39 ], [
40 "PHP" => $cur,
41 "enable_json" => "yes",
42 "CFLAGS" => "'-O0 -g --coverage'",
43 "CXXFLAGS" => "'-O0 -g --coverage'",
44 ]);
45
46 foreach ($env as $g) {
47 foreach ($g as $e) {
48 printf(" - %s\n", $e);
49 }
50 }
51
52 ?>
53
54 install:
55 - make -f travis/pecl/Makefile php
56 - make -f travis/pecl/Makefile pecl PECL=raphf:raphf:2.0.0
57
58 before_script:
59 - psql -U postgres -c "CREATE DATABASE test"
60
61 script:
62 - make -f travis/pecl/Makefile ext PECL=pq
63 - make -f travis/pecl/Makefile test
64
65 after_success:
66 - test -n "$CFLAGS" && cd src/.libs && bash <(curl -s https://codecov.io/bash) -X xcode -X coveragepy