Skip to content
Browse files

Merge remote-tracking branch 'github-unknownbliss/task/travis' into d…

…evelop-olympus

* github-unknownbliss/task/travis:
  [task/travis] Refactor php version check for dbunit install
  • Loading branch information...
2 parents 992b58d + 841d11c commit 1337f861235436efa3ca21ad7cd35d28849bde18 @naderman naderman committed Mar 22, 2012
Showing with 1 addition and 3 deletions.
  1. +1 −3 .travis.yml
View
4 .travis.yml
@@ -12,9 +12,7 @@ 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"
+ - sh -c "if [ '$TRAVIS_PHP_VERSION' = '5.2' ]; then pear install --force phpunit/DbUnit; else pyrus install --force phpunit/DbUnit; fi"
- phpenv rehash
script:

0 comments on commit 1337f86

Please sign in to comment.
Something went wrong with that request. Please try again.