change build directory
[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 cache:
19 directories:
20 - $HOME/cache
21
22 env:
23 global:
24 - PQ_DSN="postgres://postgres@localhost/test"
25 matrix:
26 <?php
27
28 $gen = include "./travis/pecl/gen-matrix.php";
29 $cur = "7.2";
30 $env = $gen([
31 "PHP" => ["7.0", "7.1", "master"],
32 "enable_debug" => "yes",
33 "enable_maintainer_zts" => "yes",
34 "enable_json" => "yes",
35 ], [
36 "PHP" => $cur,
37 "enable_json" => "no",
38 ], [
39 "PHP" => $cur,
40 "enable_json" => "yes",
41 "enable_debug",
42 "enable_maintainer_zts"
43 ], [
44 "PHP" => $cur,
45 "enable_json" => "yes",
46 "CFLAGS" => "'-O0 -g --coverage'",
47 "CXXFLAGS" => "'-O0 -g --coverage'",
48 ]);
49
50 foreach ($env as $g) {
51 foreach ($g as $e) {
52 printf(" - %s\n", $e);
53 }
54 }
55
56 ?>
57
58 install:
59 - make -f travis/pecl/Makefile php
60 - make -f travis/pecl/Makefile pecl PECL=raphf:raphf:2.0.0
61
62 before_script:
63 - psql -U postgres -c "CREATE DATABASE test"
64
65 script:
66 - make -f travis/pecl/Makefile ext PECL=pq
67 - make -f travis/pecl/Makefile test
68
69 after_success:
70 - test -n "$CFLAGS" && cd src/.libs && bash <(curl -s https://codecov.io/bash) -X xcode -X coveragepy