Skip to content

Commit ecb0de9

Browse files
committed
Updating build + upgrading mongodb & predis dependencies
1 parent 60f7124 commit ecb0de9

File tree

3 files changed

+19
-18
lines changed

3 files changed

+19
-18
lines changed

.travis.yml

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -17,20 +17,6 @@ services:
1717
- couchdb
1818
- mongodb
1919

20-
before_script:
21-
- |
22-
if [[ $TRAVIS_PHP_VERSION = "hhv"* ]]; then
23-
cat bin/ci/hhvm_phpfastcache.ini >> /etc/hhvm/php.ini
24-
else
25-
pecl channel-update pecl.php.net;
26-
yes | pecl install -f mongodb-stable;
27-
yes | pecl install -f memcached;
28-
yes | pecl install -f apcu-stable || true;
29-
phpenv config-add bin/ci/php_phpfastcache.ini;
30-
fi
31-
- sleep 15
32-
- mongo pfc_test --eval 'db.createUser({user:"travis",pwd:"test",roles:["readWrite"]});'
33-
3420
php:
3521
- 7.3
3622
- 7.4
@@ -51,6 +37,21 @@ jobs:
5137
php: 7.3
5238
- dist: bionic
5339
php: 7.4
40+
41+
before_install:
42+
- |
43+
if [[ $TRAVIS_PHP_VERSION = "hhv"* ]]; then
44+
cat bin/ci/hhvm_phpfastcache.ini >> /etc/hhvm/php.ini
45+
else
46+
pecl channel-update pecl.php.net;
47+
yes | pecl install -f mongodb-stable;
48+
yes | pecl install -f memcached;
49+
yes | pecl install -f apcu-stable || true;
50+
phpenv config-add bin/ci/php_phpfastcache.ini;
51+
fi
52+
- sleep 15
53+
- mongo pfc_test --eval 'db.createUser({user:"travis",pwd:"test",roles:["readWrite"]});'
54+
5455
install:
5556
- ./bin/ci/install_dependencies.sh
5657

bin/ci/install_dependencies.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/usr/bin/env bash
22

33
composer self-update;
4-
composer install --ignore-platform-reqs;
5-
composer require "phpfastcache/couchdb:~1.0.0" "phpfastcache/phpssdb:~1.0.0" "predis/predis:~1.1.0" "mongodb/mongodb:^1.1" --ignore-platform-reqs;
4+
composer install;
5+
composer require "phpfastcache/couchdb:~1.0.0" "phpfastcache/phpssdb:~1.0.0" "predis/predis:~1.1.0" "mongodb/mongodb:^1.9";

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@
4343
"ext-wincache": "*",
4444
"ext-leveldb": "*",
4545
"ext-couchbase": "*",
46-
"predis/predis": "~1.1.0",
47-
"mongodb/mongodb": "^1.1",
46+
"predis/predis": "^1.1",
47+
"mongodb/mongodb": "^1.9",
4848
"phpfastcache/phpssdb": "~1.0.0",
4949
"phpfastcache/couchdb": "~1.0.0"
5050
},

0 commit comments

Comments
 (0)