mirror of
				https://github.com/yiisoft/yii2.git
				synced 2025-11-04 22:57:40 +08:00 
			
		
		
		
	let travis show some information on versions
This commit is contained in:
		
							
								
								
									
										10
									
								
								.travis.yml
									
									
									
									
									
								
							
							
						
						
									
										10
									
								
								.travis.yml
									
									
									
									
									
								
							@ -45,18 +45,22 @@ install:
 | 
			
		||||
  - travis_retry composer install --prefer-dist --no-interaction
 | 
			
		||||
  - tests/unit/data/travis/mongodb-setup.sh
 | 
			
		||||
# 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/cubrid-setup.sh
 | 
			
		||||
# print elasticsearch version
 | 
			
		||||
  - curl http://localhost:9200
 | 
			
		||||
# codeception
 | 
			
		||||
  - travis_retry composer global require "codeception/codeception=2.0.*" "codeception/specify=*" "codeception/verify=*"
 | 
			
		||||
# basic and advanced application:
 | 
			
		||||
  - tests/unit/data/travis/setup-apps.sh
 | 
			
		||||
 | 
			
		||||
before_script:
 | 
			
		||||
  # show some versions and env information
 | 
			
		||||
  - echo 'elasticsearch version ' && curl http://localhost:9200/
 | 
			
		||||
  - php -r "echo INTL_ICU_VERSION;"
 | 
			
		||||
  - mysql --version
 | 
			
		||||
  - psql --version
 | 
			
		||||
 | 
			
		||||
  # initialize databases
 | 
			
		||||
  - mysql -e 'CREATE DATABASE yiitest;';
 | 
			
		||||
  - psql -U postgres -c 'CREATE DATABASE yiitest;';
 | 
			
		||||
  - tests/unit/data/travis/sphinx-setup.sh
 | 
			
		||||
 | 
			
		||||
@ -9,10 +9,10 @@ else
 | 
			
		||||
  echo "extension = mongo.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
# show mongodb version
 | 
			
		||||
echo "MongoDB Server version:"
 | 
			
		||||
mongod --version
 | 
			
		||||
 | 
			
		||||
# show mongo PHP extension version
 | 
			
		||||
echo "MongoDB PHP Extension version:"
 | 
			
		||||
php -i |grep mongo -4 |grep -2 Version
 | 
			
		||||
 | 
			
		||||
# enable text search
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user