travis: libsegfault
[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 "LD_PRELOAD" => ["/lib/x86_64-linux-gnu/libSegFault.so"],
24 "PHP" => ["master"],
25 "enable_debug",
26 #"enable_maintainer_zts",
27 "enable_psi" => ["yes"],
28 "enable_psi_posix" => ["all"],
29 ]);
30 foreach ($env as $e) {
31 printf(" - %s\n", $e);
32 }
33
34 ?>
35
36 before_script:
37 # make sure we do not try to regenerate files with broken bison
38 - touch src/parser*.[ch]
39 - make -f travis/pecl/Makefile php
40 - make -f travis/pecl/Makefile ext PECL=psi
41
42 script:
43 - make -f travis/pecl/Makefile test
44
45 after_failure:
46 - cat config.log | curl -F 'sprunge=<-' http://sprunge.us
47
48 notifications:
49 webhooks:
50 urls:
51 - https://webhooks.gitter.im/e/30aebb6c0b03f1117817
52 on_success: change
53 on_failure: always
54 on_start: never