Browse Source

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

tags/2.0.0-beta
Carsten Brandt 11 years ago
parent
commit
dabeea7a38
  1. 4
      .gitignore
  2. 3
      .travis.yml
  3. 4
      composer.json

4
.gitignore vendored

@ -16,7 +16,7 @@ Thumbs.db
/vendor
# composer itself is not needed
/composer.phar
composer.phar
# composer.lock should not be committed as we always want the latest versions
/composer.lock
@ -24,6 +24,6 @@ Thumbs.db
.DS_Store
# phpunit itself is not needed
/phpunit.phar
phpunit.phar
# local phpunit config
/phpunit.xml

3
.travis.yml

@ -14,6 +14,7 @@ services:
install:
- composer self-update && composer --version
# - 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/apc-setup.sh
- tests/unit/data/travis/memcache-setup.sh
@ -27,7 +28,7 @@ before_script:
- mongo yii2test --eval 'db.addUser("travis", "test");'
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:
# - php vendor/bin/coveralls

4
composer.json

@ -77,10 +77,6 @@
},
"require-dev": {
"twbs/bootstrap": "3.0.*",
"ext-curl": "*",
"ext-mongo": ">=1.3.0",
"ext-pdo": "*",
"ext-pdo_mysql": "*",
"smarty/smarty": "*",
"swiftmailer/swiftmailer": "*",
"twig/twig": "*",

Loading…
Cancel
Save