Added travis build file
authorMartin Hasoň <martin.hason@gmail.com>
Tue, 14 Feb 2012 13:17:30 +0000 (14:17 +0100)
committerMartin Hasoň <martin.hason@gmail.com>
Mon, 23 Apr 2012 21:30:30 +0000 (23:30 +0200)
.travis.yml [new file with mode: 0644]

diff --git a/.travis.yml b/.travis.yml
new file mode 100644 (file)
index 0000000..e6d3b61
--- /dev/null
@@ -0,0 +1,14 @@
+language: php
+
+php:
+  - 5.2
+  - 5.3
+  - 5.4
+
+env:
+  - TWIG_EXT=no
+  - TWIG_EXT=yes
+
+before_script:
+  - if [ "$TWIG_EXT" == "yes" ]; then sh -c "cd ext/twig && phpize && ./configure --enable-twig && make && sudo make install"; fi
+  - if [ "$TWIG_EXT" == "yes" ]; then echo "extension=twig.so" >> `php --ini | grep "Loaded Configuration" | sed -e "s|.*:\s*||"`; fi