Skip to content

Commit 3783c70

Browse files
committed
Trying to enable travis cache
1 parent d346255 commit 3783c70

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

.travis.yml

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@ services:
1717
- redis
1818
- mongodb
1919
- docker
20-
20+
cache:
21+
directories:
22+
- $HOME/pecl_cache
2123
php:
2224
- 8.0
2325
# - 8.1 # Uncomment this when 8.1 will be released
@@ -32,6 +34,8 @@ before_install:
3234
# Memcache however seems to be compatible with PHP 7 and 8: https://pecl.php.net/package/memcache
3335
#
3436
# - ./bin/ci/scripts/install_arangodb.sh;
37+
- composer install
38+
- composer require phwoolcon/ci-pecl-cacher -n
3539
- "[[ $TRAVIS_PHP_VERSION != \"nightly\" ]] && ./bin/ci/scripts/install_arangodb.sh || echo \"Arangodb install ignored on nightly\""
3640
# - ./bin/ci/scripts/install_ssdb.sh;
3741
- "[[ $TRAVIS_PHP_VERSION != \"nightly\" ]] && ./bin/ci/scripts/install_ssdb.sh || echo \"SSDB install ignored on nightly\""
@@ -46,23 +50,20 @@ before_install:
4650
# - pecl channel-update pecl.php.net;
4751
- "[[ $TRAVIS_PHP_VERSION != \"nightly\" ]] && pecl channel-update pecl.php.net || echo \"PECL Channel update ignored on nightly\""
4852
# - yes | pecl install -f grpc-stable | grep -v --line-buffered "/tmp/pear/install/grpc"; # This pecl install is partially muted due to too much output written
49-
- "[[ $TRAVIS_PHP_VERSION != \"nightly\" ]] && yes | pecl install -f grpc-stable | grep -v --line-buffered \"/tmp/pear/install/grpc\" || echo \"PECL GRPC install ignored on nightly\""
53+
- "[[ $TRAVIS_PHP_VERSION != \"nightly\" ]] && yes | ./vendor/bin/ci-pecl-install grpc | grep -v --line-buffered \"/tmp/pear/install/grpc\" || echo \"PECL GRPC install ignored on nightly\""
5054
# - yes | pecl install -f mongodb-stable;
51-
- "[[ $TRAVIS_PHP_VERSION != \"nightly\" ]] && yes | pecl install -f mongodb-stable || echo \"PECL Mongodb install ignored on nightly\""
55+
- "[[ $TRAVIS_PHP_VERSION != \"nightly\" ]] && yes | ./vendor/bin/ci-pecl-install mongodb || echo \"PECL Mongodb install ignored on nightly\""
5256
# - yes | pecl install -f apcu-stable || true;
53-
- "[[ $TRAVIS_PHP_VERSION != \"nightly\" ]] && yes | (pecl install -f apcu-stable || true) || echo \"PECL Apcu install ignored on nightly\""
57+
- "[[ $TRAVIS_PHP_VERSION != \"nightly\" ]] && yes | ./vendor/bin/ci-pecl-install apcu || echo \"PECL Apcu install ignored on nightly\""
5458
# - yes | pecl install -f memcache;
55-
- "[[ $TRAVIS_PHP_VERSION != \"nightly\" ]] && yes | pecl install -f couchbase-stable || echo \"PECL Memcache install ignored on nightly\""
59+
- "[[ $TRAVIS_PHP_VERSION != \"nightly\" ]] && yes | ./vendor/bin/ci-pecl-install memcache || echo \"PECL Memcache install ignored on nightly\""
5660
# - yes | pecl install -f couchbase-stable;
57-
- "[[ $TRAVIS_PHP_VERSION != \"nightly\" ]] && yes | pecl install -f couchbase-stable || echo \"PECL Couchbase install ignored on nightly\""
58-
# - phpenv config-add bin/ci/php_common.ini;
61+
- "[[ $TRAVIS_PHP_VERSION != \"nightly\" ]] && yes | ./vendor/bin/ci-pecl-install couchbase || echo \"PECL Couchbase install ignored on nightly\""
5962
- phpenv config-add bin/ci/php_common.ini
60-
6163
- phpenv config-rm xdebug.ini
6264
install:
6365
- "[[ $TRAVIS_PHP_VERSION != \"nightly\" ]] && ./bin/ci/scripts/install_dependencies.sh || ./bin/ci/scripts/install_dependencies_lite.sh"
6466

65-
6667
script:
6768
- ./vendor/bin/phpcs lib/ --report=summary
6869
- ./vendor/bin/phpmd lib/ ansi phpmd.xml

0 commit comments

Comments
 (0)