diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..de4a392
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,2 @@
+/vendor
+/composer.lock
diff --git a/.travis.yml b/.travis.yml
new file mode 100644
index 0000000..a46a97b
--- /dev/null
+++ b/.travis.yml
@@ -0,0 +1,48 @@
+language: php
+
+php:
+ - 5.4
+ - 5.5
+ - 5.6
+ - 7.0
+ - hhvm
+ - hhvm-nightly
+
+# run build against hhvm but allow them to fail
+# http://docs.travis-ci.com/user/build-configuration/#Rows-That-are-Allowed-To-Fail
+matrix:
+ fast_finish: true
+ allow_failures:
+ - php: hhvm-nightly
+ - php: 7.0
+
+# faster builds on new travis setup not using sudo
+sudo: false
+
+# cache vendor dirs
+cache:
+ directories:
+ - vendor
+ - $HOME/.composer/cache
+
+install:
+ - travis_retry composer self-update && composer --version
+ - travis_retry composer global require "fxp/composer-asset-plugin:1.0.0"
+ - export PATH="$HOME/.composer/vendor/bin:$PATH"
+ - travis_retry composer install --prefer-dist --no-interaction
+
+before_script:
+ - |
+ if [ $TRAVIS_PHP_VERSION = '5.6' ]; then
+ PHPUNIT_FLAGS="--coverage-clover=coverage.clover"
+ fi
+
+script:
+ - phpunit --verbose $PHPUNIT_FLAGS
+
+after_script:
+ - |
+ if [ $TRAVIS_PHP_VERSION = '5.6' ]; then
+ travis_retry wget https://scrutinizer-ci.com/ocular.phar
+ php ocular.phar code-coverage:upload --format=php-clover coverage.clover
+ fi
diff --git a/README.md b/README.md
index 27cc5dc..d647349 100644
--- a/README.md
+++ b/README.md
@@ -1,12 +1,17 @@
Twitter Bootstrap Extension for Yii 2
=====================================
-This is the Twitter Bootstrap extension for Yii 2. It encapsulates [Bootstrap](http://getbootstrap.com/) components
+This is the Twitter Bootstrap extension for [Yii framework 2.0](http://www.yiiframework.com). It encapsulates [Bootstrap](http://getbootstrap.com/) components
and plugins in terms of Yii widgets, and thus makes using Bootstrap components/plugins
in Yii applications extremely easy.
For license information check the [LICENSE](LICENSE.md)-file.
+[![Latest Stable Version](https://poser.pugx.org/yiisoft/yii2-bootstrap/v/stable.png)](https://packagist.org/packages/yiisoft/yii2-bootstrap)
+[![Total Downloads](https://poser.pugx.org/yiisoft/yii2-bootstrap/downloads.png)](https://packagist.org/packages/yiisoft/yii2-bootstrap)
+[![Build Status](https://travis-ci.org/yiisoft/yii2-bootstrap.svg?branch=master)](https://travis-ci.org/yiisoft/yii2-bootstrap)
+
+
Installation
------------
diff --git a/composer.json b/composer.json
index 4a5da0d..fde1a87 100644
--- a/composer.json
+++ b/composer.json
@@ -29,6 +29,10 @@
"extra": {
"branch-alias": {
"dev-master": "2.0.x-dev"
+ },
+ "asset-installer-paths": {
+ "npm-asset-library": "vendor/npm",
+ "bower-asset-library": "vendor/bower"
}
}
}
diff --git a/phpunit.xml.dist b/phpunit.xml.dist
new file mode 100644
index 0000000..3a3db9f
--- /dev/null
+++ b/phpunit.xml.dist
@@ -0,0 +1,13 @@
+
+