prepare for v1.0
[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" => ["5.4", "5.5", "5.6"],
21 "enable_debug",
22 "enable_maintainer_zts",
23 "enable_json",
24 "enable_hash" => ["yes"],
25 ]);
26 foreach ($env as $e) {
27 printf(" - %s\n", $e);
28 }
29
30 ?>
31
32 before_script:
33 - make -f travis/pecl/Makefile php
34 - make -f travis/pecl/Makefile pecl PECL=raphf
35 - psql -U postgres -c "CREATE DATABASE test"
36
37 script:
38 - make -f travis/pecl/Makefile ext PECL=pq
39 - make -f travis/pecl/Makefile test
40
41 sudo: false