332ac8872835e0585a213bd1bc29895de6cea081
[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 - gdb
14 - re2c
15 - libidn11-dev
16 - libsqlite3-dev
17
18 env:
19 matrix:
20 <?php
21
22 $gen = include __DIR__."/../travis/pecl/gen-matrix.php";
23 $env = $gen([
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 - ls -Altr
48 - test -f core* && gdb -q -ex bt --batch $HOME/job-$TRAVIS_JOB_NUMBER/bin/php core*
49
50 notifications:
51 webhooks:
52 urls:
53 - https://webhooks.gitter.im/e/30aebb6c0b03f1117817
54 on_success: change
55 on_failure: always
56 on_start: never