diff options
author | Michael Cullum <unknownbliss@phpbbdevelopers.net> | 2012-03-22 16:09:58 +0000 |
---|---|---|
committer | Michael Cullum <unknownbliss@phpbbdevelopers.net> | 2012-03-22 16:09:58 +0000 |
commit | 841d11c6cd90d331c2923ba7851dd5f813203ddf (patch) | |
tree | a59495f0dfbab1c04a885f00729348491b84325c | |
parent | 0ed66ad0e8d11c802520046b446aa5622a637df9 (diff) | |
download | forums-841d11c6cd90d331c2923ba7851dd5f813203ddf.tar forums-841d11c6cd90d331c2923ba7851dd5f813203ddf.tar.gz forums-841d11c6cd90d331c2923ba7851dd5f813203ddf.tar.bz2 forums-841d11c6cd90d331c2923ba7851dd5f813203ddf.tar.xz forums-841d11c6cd90d331c2923ba7851dd5f813203ddf.zip |
[task/travis] Refactor php version check for dbunit install
PHPBB3-10718
-rw-r--r-- | .travis.yml | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/.travis.yml b/.travis.yml index 78221d588c..d73bbd2a48 100644 --- a/.travis.yml +++ b/.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: |