File tree 1 file changed +4
-2
lines changed
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -30,14 +30,16 @@ addons:
30
30
services : mongodb
31
31
32
32
before_script :
33
+ - PHP_VERSION=$(php -r 'echo phpversion();')
33
34
- mongod --version
34
- - echo ${PHP_VERSION}
35
+ - echo $TRAVIS_PHP_VERSION
36
+ - echo $PHP_VERSION
35
37
- if [[ ${PHP_VERSION:0:2} == "5." ]]; then echo "extension = mongo.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini; fi
36
38
- if [[ ${PHP_VERSION:0:2} == "5." ]]; then php -r "echo \MongoClient::VERSION . PHP_EOL;"; fi
37
39
- if [[ ${PHP_VERSION:0:2} == "7." ]]; then echo "extension = mongodb.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini; fi
38
40
- if [[ ${PHP_VERSION:0:2} == "7." ]]; then php -r 'echo MONGODB_VERSION . PHP_EOL;'; fi
39
41
- composer update --no-interaction
40
- - if [[ ${TRAVIS_PHP_VERSION :0:2} == "7." ]]; then composer require "alcaeus/mongo-php-adapter"; fi
42
+ - if [[ ${PHP_VERSION :0:2} == "7." ]]; then composer require "alcaeus/mongo-php-adapter"; fi
41
43
42
44
script :
43
45
- echo "Currently not implemented"
You can’t perform that action at this time.
0 commit comments