aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Cullum <unknownbliss@phpbbdevelopers.net>2012-03-21 22:57:29 +0000
committerMichael Cullum <unknownbliss@phpbbdevelopers.net>2012-03-22 09:05:59 +0000
commit4dafcc2525fa72f2bd91760fae49e51ff9d1a0ef (patch)
tree6091933805d9e30940ae60ba18ac18a10d60daa5 /.travis.yml
parentMerge remote-tracking branch 'dhruvgoel92/ticket/10691' into develop-olympus (diff)
downloadphpbb-4dafcc2525fa72f2bd91760fae49e51ff9d1a0ef.tar.gz
phpbb-4dafcc2525fa72f2bd91760fae49e51ff9d1a0ef.tar.bz2
phpbb-4dafcc2525fa72f2bd91760fae49e51ff9d1a0ef.zip
[task/travis] Adding Travis Continuous Intergration Support
PHPBB3-10718
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml33
1 files changed, 33 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml
new file mode 100644
index 0000000000..e091954e0e
--- /dev/null
+++ b/.travis.yml
@@ -0,0 +1,33 @@
+language: php
+php:
+ - 5.2
+ - 5.3
+ - 5.4
+
+env:
+ - DB=mysql
+ - DB=postgres
+
+before_script:
+ - sh -c "if [ '$DB' = 'pgsql' ]; then psql -c 'DROP DATABASE IF EXISTS phpbb_tests;' -U postgres; fi"
+ - sh -c "if [ '$DB' = 'pgsql' ]; then psql -c 'create database phpbb_tests;' -U postgres; fi"
+ - sh -c "if [ '$DB' = 'mysql' ]; then mysql -e 'create database IF NOT EXISTS phpbb_tests;'; fi"
+ - sh -c "if [ '$TRAVIS_PHP_VERSION' = '5.2' ]; then pear install --force phpunit/DbUnit; fi"
+ - sh -c "if [ '$TRAVIS_PHP_VERSION' = '5.3' ]; then pyrus install --force phpunit/DbUnit; fi"
+ - sh -c "if [ '$TRAVIS_PHP_VERSION' = '5.4' ]; then pyrus install --force phpunit/DbUnit; fi"
+ - phpenv rehash
+
+script:
+ - phpunit --configuration travis/$DB.travis.xml
+
+notifications:
+ email:
+ recipients:
+ - m@michaelcullum.com
+ on_success: never
+ on_failure: always
+
+branches:
+ only:
+ develop
+ task/travis