c97b71704df9972365ffa85b53446238ad54203c
[m6w6/ext-psi] / scripts / gen_travis_yml.php
1 #!/usr/bin/env php
2 # autogenerated file; do not edit
3 language: c
4 sudo: required
5 dist: trusty
6
7 addons:
8 apt:
9 packages:
10 - php5-cli
11 - php-pear
12 - valgrind
13 - re2c
14 - libidn11-dev
15 - libsqlite3-dev
16
17 env:
18 matrix:
19 <?php
20
21 $gen = include __DIR__."/../travis/pecl/gen-matrix.php";
22 $env = $gen([
23 "PHP" => ["master"],
24 "enable_debug",
25 #"enable_maintainer_zts",
26 "enable_psi" => ["yes"],
27 "enable_psi_posix" => ["all"],
28 ]);
29 foreach ($env as $e) {
30 printf(" - %s\n", $e);
31 }
32
33 ?>
34
35 before_script:
36 # make sure we do not try to regenerate files with broken bison
37 - touch src/parser*.[ch]
38 - make -f travis/pecl/Makefile php
39 - make -f travis/pecl/Makefile ext PECL=psi
40
41 script:
42 - make -f travis/pecl/Makefile test
43
44 after_failure:
45 - cat config.log | curl -F 'sprunge=<-' http://sprunge.us
46 - cat tests/parser/dump001.psi
47 - ldd .libs/psi.so
48
49 notifications:
50 webhooks:
51 urls:
52 - https://webhooks.gitter.im/e/30aebb6c0b03f1117817
53 on_success: change
54 on_failure: always
55 on_start: never