Skip to content

Commit

Permalink
Update .travis.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
frqnck committed Aug 27, 2015
1 parent 7753cf7 commit 05b3217
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ before_script:
- sh -c "if [ '$DB' = 'apc' ]; then echo 'apc.enable_cli=1' >> `php --ini | grep 'Loaded Configuration' | sed -e 's|.*:\s*||'`; fi"
- sh -c "if [ '$DB' = 'redis' ]; then git clone --branch=master --depth=1 git://github.com/nicolasff/phpredis.git phpredis; cd phpredis && phpize && ./configure && make && sudo make install && cd ..; rm -fr phpredis; fi"
- sh -c "if [ '$DB' = 'redis' ]; then echo 'extension=redis.so' >> `php --ini | grep 'Loaded Configuration' | sed -e 's|.*:\s*||'`; fi"
- sh -c "if [ '$DB' = 'mongodb' ]; then pecl install mongo; /etc/init.d/mongodb start; fi"
- sh -c "if [ '$DB' = 'mongodb' ]; then echo 'extension=mongo.so' >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini; /etc/init.d/mongodb start; fi"
- sh -c "if [ '$DB' = 'mysql' ]; then mysql -e 'CREATE DATABASE IF NOT EXISTS apix_tests;'; fi"
- sh -c "if [ '$DB' = 'pgsql' ]; then psql -c 'DROP DATABASE IF EXISTS apix_tests;' -U postgres; fi"
- sh -c "if [ '$DB' = 'pgsql' ]; then psql -c 'CREATE DATABASE apix_tests;' -U postgres; fi"
- sh -c "if [ '$DB' = 'memcached' ]; then pecl install memcached-2.0.1; /usr/bin/memcached -d; fi"
- sh -c "if [ '$DB' = 'memcached' ]; then echo 'extension=memcached.so' >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini; /etc/init.d/mongodb start; /usr/bin/memcached -d; fi"
#- phpenv rehash
- travis_retry composer self-update
- travis_retry composer install --dev --no-interaction --prefer-source
Expand Down

0 comments on commit 05b3217

Please sign in to comment.