let travis show some information on versions

This commit is contained in:
Carsten Brandt
2015-01-10 22:40:21 +01:00
parent 9ff9cab67f
commit 802c384551
2 changed files with 9 additions and 5 deletions

View File

@ -45,18 +45,22 @@ install:
- travis_retry composer install --prefer-dist --no-interaction - travis_retry composer install --prefer-dist --no-interaction
- tests/unit/data/travis/mongodb-setup.sh - tests/unit/data/travis/mongodb-setup.sh
# TODO: APC currently fails composer. https://github.com/composer/composer/issues/3405 # TODO: APC currently fails composer. https://github.com/composer/composer/issues/3405
# - tests/unit/data/travis/apc-setup.sh - tests/unit/data/travis/apc-setup.sh
- tests/unit/data/travis/memcache-setup.sh - tests/unit/data/travis/memcache-setup.sh
- tests/unit/data/travis/cubrid-setup.sh - tests/unit/data/travis/cubrid-setup.sh
# print elasticsearch version
- curl http://localhost:9200
# codeception # codeception
- travis_retry composer global require "codeception/codeception=2.0.*" "codeception/specify=*" "codeception/verify=*" - travis_retry composer global require "codeception/codeception=2.0.*" "codeception/specify=*" "codeception/verify=*"
# basic and advanced application: # basic and advanced application:
- tests/unit/data/travis/setup-apps.sh - tests/unit/data/travis/setup-apps.sh
before_script: before_script:
# show some versions and env information
- echo 'elasticsearch version ' && curl http://localhost:9200/ - echo 'elasticsearch version ' && curl http://localhost:9200/
- php -r "echo INTL_ICU_VERSION;"
- mysql --version
- psql --version
# initialize databases
- mysql -e 'CREATE DATABASE yiitest;'; - mysql -e 'CREATE DATABASE yiitest;';
- psql -U postgres -c 'CREATE DATABASE yiitest;'; - psql -U postgres -c 'CREATE DATABASE yiitest;';
- tests/unit/data/travis/sphinx-setup.sh - tests/unit/data/travis/sphinx-setup.sh

View File

@ -9,10 +9,10 @@ else
echo "extension = mongo.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini echo "extension = mongo.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
fi fi
# show mongodb version echo "MongoDB Server version:"
mongod --version mongod --version
# show mongo PHP extension version echo "MongoDB PHP Extension version:"
php -i |grep mongo -4 |grep -2 Version php -i |grep mongo -4 |grep -2 Version
# enable text search # enable text search