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 /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
.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

3
.travis.yml

@ -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:
- 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

4
composer.json

@ -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": "*",

Loading…
Cancel
Save