basic support for builtins
[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 - apport
15 - re2c
16 - libidn11-dev
17 - libsqlite3-dev
18
19 env:
20 matrix:
21 <?php
22
23 $gen = include __DIR__."/../travis/pecl/gen-matrix.php";
24 $env = $gen([
25 "PHP" => ["master"],
26 "enable_debug",
27 #"enable_maintainer_zts",
28 "enable_psi" => ["yes"],
29 "enable_psi_posix" => ["all"],
30 ]);
31 foreach ($env as $e) {
32 printf(" - %s\n", $e);
33 }
34
35 ?>
36
37 before_install:
38 # make sure we do not try to regenerate files with broken bison or old re2c
39 - touch src/parser_proc_grammar.y
40 - touch src/parser_proc.c
41 - touch src/parser_proc.h
42 - touch src/parser_scan.re
43 - touch src/parser_scan.c
44 - touch src/parser.h
45
46 install:
47 - make -f travis/pecl/Makefile php
48
49 before_script:
50 - ulimit -c unlimited -S
51 - export TEST_PHP_ARGS="--no-clean"
52
53 script:
54 - make -f travis/pecl/Makefile ext PECL=psi
55 - make -f travis/pecl/Makefile test
56
57 after_failure:
58 - cat config.log | curl -F 'sprunge=<-' http://sprunge.us
59 - cat tests/parser/dump001.psi | curl -F 'sprunge=<-' http://sprunge.us
60 - test -f core* && gdb -q -ex bt --batch $HOME/job-$TRAVIS_JOB_NUMBER/bin/php core*
61
62 notifications:
63 webhooks:
64 urls:
65 - https://webhooks.gitter.im/e/30aebb6c0b03f1117817
66 on_success: change
67 on_failure: always
68 on_start: never