travis: fix build
[m6w6/ext-psi] / scripts / gen_travis_yml.php
index 43a30c948aede53c7583dc792c11df5a530da467..c97b71704df9972365ffa85b53446238ad54203c 100755 (executable)
@@ -9,6 +9,7 @@ addons:
   packages:
    - php5-cli
    - php-pear
+   - valgrind
    - re2c
    - libidn11-dev
    - libsqlite3-dev
@@ -24,7 +25,6 @@ $env = $gen([
        #"enable_maintainer_zts",
        "enable_psi" => ["yes"],
        "enable_psi_posix" => ["all"],
-       "LEMON" => ["'\\\$(PHP_PSI_BUILDDIR)/lemon'"]
 ]);
 foreach ($env as $e) {
        printf("  - %s\n", $e);
@@ -33,6 +33,8 @@ foreach ($env as $e) {
 ?>
 
 before_script:
+ # make sure we do not try to regenerate files with broken bison
+ - touch src/parser*.[ch]
  - make -f travis/pecl/Makefile php
  - make -f travis/pecl/Makefile ext PECL=psi
 
@@ -41,4 +43,13 @@ script:
 
 after_failure:
  - cat config.log | curl -F 'sprunge=<-' http://sprunge.us
+ - cat tests/parser/dump001.psi
  - ldd .libs/psi.so
+
+notifications:
+  webhooks:
+    urls:
+      - https://webhooks.gitter.im/e/30aebb6c0b03f1117817
+    on_success: change
+    on_failure: always
+    on_start: never