From dabeea7a388179b7cd5184c03e340658c669f1e9 Mon Sep 17 00:00:00 2001 From: Carsten Brandt Date: Mon, 30 Dec 2013 20:53:30 +0100 Subject: [PATCH] testing: do not require php ext in composer.json and use composer phpunit on travis --- .gitignore | 4 ++-- .travis.yml | 3 ++- composer.json | 4 ---- 3 files changed, 4 insertions(+), 7 deletions(-) diff --git a/.gitignore b/.gitignore index 52b1bac..e3fdcbf 100644 --- a/.gitignore +++ b/.gitignore @@ -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 diff --git a/.travis.yml b/.travis.yml index def1c47..957efad 100644 --- a/.travis.yml +++ b/.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 diff --git a/composer.json b/composer.json index dfd4fbb..a8f0fee 100644 --- a/composer.json +++ b/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": "*",