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