Merge branch 'v1.1.x'
[m6w6/ext-pq] / gen_travis_yml.php
1 #!/usr/bin/env php
2 # autogenerated file; do not edit
3 language: c
4
5 addons:
6 postgresql: 9.4
7 apt:
8 packages:
9 - php5-cli
10 - php-pear
11
12 env:
13 global:
14 - PQ_DSN="postgres://postgres@localhost/test"
15 matrix:
16 <?php
17
18 $gen = include "./travis/pecl/gen-matrix.php";
19 $env = $gen([
20 "PHP" => ["7.0", "master"],
21 "enable_debug",
22 "enable_maintainer_zts",
23 "enable_json",
24 ]);
25 foreach ($env as $e) {
26 printf(" - %s\n", $e);
27 }
28
29 ?>
30
31 before_script:
32 - make -f travis/pecl/Makefile php
33 - make -f travis/pecl/Makefile pecl PECL=raphf:raphf:2.0.0
34 - make -f travis/pecl/Makefile ext PECL=pq
35 - psql -U postgres -c "CREATE DATABASE test"
36
37 script:
38 - make -f travis/pecl/Makefile test
39
40 sudo: false