Skip to content
This repository has been archived by the owner on Jan 29, 2020. It is now read-only.

Commit

Permalink
manually install apcu-bc
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanotorresi authored and marc-mabe committed May 31, 2016
1 parent ea9dbe0 commit 9ea199c
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .travis.yml 100644 → 100755
Expand Up @@ -79,7 +79,7 @@ matrix:
- DEPS=locked
- CHECK_CS=true
- PECL_INSTALL_APCU='apcu'
- PECL_INSTALL_APCU_BC='apcu_bc-beta'
- INSTALL_APCU_BC=true

# FIXME:
# there is no memcached extension available for PHP-7
Expand Down Expand Up @@ -133,6 +133,15 @@ install:
# The first extension loading still results in a warning but it doesn't break the test
- if [[ $PECL_INSTALL_APCU_BC != '' ]]; then pecl install $PECL_INSTALL_APCU_BC && phpenv config-add .ci/apcu_bc.ini || return 0 ; fi

- if [[ $INSTALL_APCU_BC == 'true' ]]; then
git clone https://github.com/krakjoe/apcu-bc.git && cd apci-bc
&& git checkout $(git rev-list --tags --max-count=1)
&& phpize && ./configure && make && make install
&& phpenv config-add $pwd/.ci/apcu_bc.ini
|| return 0 ;
cd $pwd ;
fi

- if [[ $DEPS == 'latest' ]]; then travis_retry composer update $COMPOSER_ARGS ; fi
- if [[ $DEPS == 'lowest' ]]; then travis_retry composer update --prefer-lowest --prefer-stable $COMPOSER_ARGS ; fi
- if [[ $TEST_COVERAGE == 'true' ]]; then travis_retry composer require --dev $COMPOSER_ARGS satooshi/php-coveralls:^1.0 ; fi
Expand Down

0 comments on commit 9ea199c

Please sign in to comment.