Commit dabeea7a by Carsten Brandt

testing: do not require php ext in composer.json and use composer phpunit on travis

parent f09bf4ea
...@@ -16,7 +16,7 @@ Thumbs.db ...@@ -16,7 +16,7 @@ Thumbs.db
/vendor /vendor
# composer itself is not needed # composer itself is not needed
/composer.phar composer.phar
# composer.lock should not be committed as we always want the latest versions # composer.lock should not be committed as we always want the latest versions
/composer.lock /composer.lock
...@@ -24,6 +24,6 @@ Thumbs.db ...@@ -24,6 +24,6 @@ Thumbs.db
.DS_Store .DS_Store
# phpunit itself is not needed # phpunit itself is not needed
/phpunit.phar phpunit.phar
# local phpunit config # local phpunit config
/phpunit.xml /phpunit.xml
...@@ -14,6 +14,7 @@ services: ...@@ -14,6 +14,7 @@ services:
install: install:
- composer self-update && composer --version - composer self-update && composer --version
# - composer require satooshi/php-coveralls 0.6.* --dev --prefer-dist # - composer require satooshi/php-coveralls 0.6.* --dev --prefer-dist
- composer install --prefer-dist
- tests/unit/data/travis/mongodb-setup.sh - tests/unit/data/travis/mongodb-setup.sh
- 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
...@@ -27,7 +28,7 @@ before_script: ...@@ -27,7 +28,7 @@ before_script:
- mongo yii2test --eval 'db.addUser("travis", "test");' - mongo yii2test --eval 'db.addUser("travis", "test");'
script: script:
- phpunit --coverage-text --coverage-clover tests/unit/runtime/coveralls/clover.xml --verbose --exclude-group mssql,oci,wincache,xcache,zenddata,vendor - vendor/bin/phpunit --coverage-text --coverage-clover tests/unit/runtime/coveralls/clover.xml --verbose --exclude-group mssql,oci,wincache,xcache,zenddata,vendor
#after_script: #after_script:
# - php vendor/bin/coveralls # - php vendor/bin/coveralls
...@@ -77,10 +77,6 @@ ...@@ -77,10 +77,6 @@
}, },
"require-dev": { "require-dev": {
"twbs/bootstrap": "3.0.*", "twbs/bootstrap": "3.0.*",
"ext-curl": "*",
"ext-mongo": ">=1.3.0",
"ext-pdo": "*",
"ext-pdo_mysql": "*",
"smarty/smarty": "*", "smarty/smarty": "*",
"swiftmailer/swiftmailer": "*", "swiftmailer/swiftmailer": "*",
"twig/twig": "*", "twig/twig": "*",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment