@@ -114,12 +114,12 @@ install:
114
114
- if [[ $APCU_PECL_VERSION != '' ]]; then
115
115
echo "yes\nno\n" | pecl install -f $APCU_PECL_VERSION || return 0 ;
116
116
sed -i 's/extension="apcu.so"//' ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini ;
117
- fi
117
+ fi ;
118
118
119
119
- if [[ $APCU_BC_PECL_VERSION != '' ]]; then
120
120
pecl install -f $APCU_BC_PECL_VERSION ;
121
121
sed -i 's/extension="apc.so"//' ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini ;
122
- fi
122
+ fi ;
123
123
124
124
- if [[ $TESTS_ZEND_CACHE_XCACHE_ENABLED == 'true' ]]; then
125
125
git clone https://github.com/lighttpd/xcache.git
@@ -128,37 +128,42 @@ install:
128
128
&& git checkout $(git rev-list --tags --max-count=1)
129
129
&& phpize && ./configure --enable-xcache && make install
130
130
);
131
- fi
132
-
133
- - travis_retry composer install $COMPOSER_ARGS --ignore-platform-reqs
134
- - if [[ $LEGACY_DEPS != '' ]]; then travis_retry composer update $COMPOSER_ARGS --with-dependencies $LEGACY_DEPS ; fi
135
- - if [[ $DEPS == 'latest' ]]; then travis_retry composer update $COMPOSER_ARGS ; fi
136
- - if [[ $DEPS == 'lowest' ]]; then travis_retry composer update --prefer-lowest --prefer-stable $COMPOSER_ARGS ; fi
137
- - if [[ $TEST_COVERAGE == 'true' ]]; then travis_retry composer require --dev $COMPOSER_ARGS $COVERAGE_DEPS ; fi
138
- - stty cols 120 && composer show
131
+ fi ;
139
132
140
- before_script :
141
133
- if [[ $APCU_PECL_VERSION != '' && $APCU_BC_PECL_VERSION == '' ]]; then
142
134
phpenv config-add .ci/apcu.ini ;
143
135
elif [[ $APCU_BC_PECL_VERSION != '' ]]; then
144
136
phpenv config-add .ci/apcu_bc.ini ;
145
137
fi ;
146
- if [[ $TESTS_ZEND_CACHE_REDIS_ENABLED == 'true' ]]; then
138
+
139
+ - if [[ $TESTS_ZEND_CACHE_REDIS_ENABLED == 'true' ]]; then
147
140
phpenv config-add .ci/redis.ini ;
148
141
fi ;
149
- if [[ $TESTS_ZEND_CACHE_MEMCACHE_ENABLED == 'true' ]]; then
142
+
143
+ - if [[ $TESTS_ZEND_CACHE_MEMCACHE_ENABLED == 'true' ]]; then
150
144
phpenv config-add .ci/memcache.ini ;
151
145
fi ;
152
- if [[ $TESTS_ZEND_CACHE_MEMCACHED_ENABLED == 'true' ]]; then
146
+
147
+ - if [[ $TESTS_ZEND_CACHE_MEMCACHED_ENABLED == 'true' ]]; then
153
148
phpenv config-add .ci/memcached.ini ;
154
149
fi ;
150
+
155
151
if [[ $TESTS_ZEND_CACHE_MONGODB_ENABLED == 'true' ]]; then
156
152
phpenv config-add .ci/mongo.ini ;
157
153
fi ;
158
- if [[ $TESTS_ZEND_CACHE_XCACHE_ENABLED == 'true' ]]; then
154
+
155
+ - if [[ $TESTS_ZEND_CACHE_XCACHE_ENABLED == 'true' ]]; then
159
156
phpenv config-add .ci/xcache.ini ;
160
157
fi ;
161
158
159
+ - travis_retry composer install $COMPOSER_ARGS --ignore-platform-reqs
160
+ - if [[ $LEGACY_DEPS != '' ]]; then travis_retry composer update $COMPOSER_ARGS --with-dependencies $LEGACY_DEPS ; fi
161
+ - if [[ $DEPS == 'latest' ]]; then travis_retry composer update $COMPOSER_ARGS ; fi
162
+ - if [[ $DEPS == 'lowest' ]]; then travis_retry composer update --prefer-lowest --prefer-stable $COMPOSER_ARGS ; fi
163
+ - if [[ $TEST_COVERAGE == 'true' ]]; then travis_retry composer require --dev $COMPOSER_ARGS $COVERAGE_DEPS ; fi
164
+ - if [[ $TESTS_ZEND_CACHE_MONGODB_ENABLED == 'true' ]]; then travis_retry composer require --dev $COMPOSER_ARGS $MONGODB_DEPS ; fi
165
+ - stty cols 120 && composer show
166
+
162
167
script :
163
168
- if [[ $TEST_COVERAGE == 'true' ]]; then composer run-script test-coverage --timeout=400 -- --verbose ; else composer run-script test --timeout=300 -- --verbose ; fi
164
169
- if [[ $BENCHMARKS == 'true' ]]; then vendor/bin/phpbench run --revs=2 --iterations=2 --report=aggregate ; fi
0 commit comments