diff --git a/.travis.yml b/.travis.yml index c84de6db13f..5827231db19 100644 --- a/.travis.yml +++ b/.travis.yml @@ -19,7 +19,6 @@ services: before_install: - ./unit-tests/ci/install_prereqs.sh - ./unit-tests/ci/setup_dbs.sh - - sudo apt-get -qq update - sudo apt-get -qq install valgrind before_script: diff --git a/unit-tests/ci/install_prereqs.sh b/unit-tests/ci/install_prereqs.sh index bdb8345661c..3897fcdbaa7 100755 --- a/unit-tests/ci/install_prereqs.sh +++ b/unit-tests/ci/install_prereqs.sh @@ -2,6 +2,8 @@ DIR=$(readlink -enq $(dirname $0)) +sudo apt-get -qq update & + if [ "$(php -r 'echo substr(PHP_VERSION, 0, 3);')" = "5.5" ]; then ( pecl install apcu < /dev/null || ( pecl config-set preferred_state beta; pecl install apcu < /dev/null ) && phpenv config-add "$DIR/apcu.ini" ) & else @@ -13,5 +15,6 @@ CFLAGS="-O1 -g3 -fno-strict-aliasing" pecl install imagick < /dev/null & # CFLAGS="-O2 -g3 -fno-strict-aliasing" pecl upgrade mongo < /dev/null & phpenv config-add "$DIR/memcache.ini" +phpenv config-add "$DIR/memcached.ini" phpenv config-rm xdebug.ini wait diff --git a/unit-tests/ci/memcached.ini b/unit-tests/ci/memcached.ini new file mode 100644 index 00000000000..7d09664ee5a --- /dev/null +++ b/unit-tests/ci/memcached.ini @@ -0,0 +1 @@ +extension=memcached.so