diff --git a/apps/basic/.travis.yml b/apps/basic/.travis.yml new file mode 100644 index 0000000..2e33645 --- /dev/null +++ b/apps/basic/.travis.yml @@ -0,0 +1,14 @@ +language: php + +php: + - 5.5 + - 5.4 + +install: + - composer require --prefer-dist --dev "codeception/codeception *" "codeception/specify *" + +before_script: + - php vendor/bin/codecept build + +script: + - php vendor/bin/codecept run \ No newline at end of file diff --git a/apps/basic/tests/README.md b/apps/basic/tests/README.md index 1a27197..f95ad0c 100644 --- a/apps/basic/tests/README.md +++ b/apps/basic/tests/README.md @@ -6,8 +6,7 @@ After creating the basic application, follow these steps to prepare for the test 1. To install `Codeception` and its dependencies through composer, run the following commands: ``` - php composer.phar require --dev "codeception/codeception": "*" - php composer.phar require --dev "codeception/specify": "*" + php composer.phar require --dev "codeception/codeception *" "codeception/specify *" ``` 2. In the file `_bootstrap.php`, modify the definition of the constant `TEST_ENTRY_URL` so diff --git a/apps/basic/tests/functional.suite.yml b/apps/basic/tests/functional.suite.yml index 0d400af..f8592f7 100644 --- a/apps/basic/tests/functional.suite.yml +++ b/apps/basic/tests/functional.suite.yml @@ -14,4 +14,6 @@ modules: - Yii2 config: Yii2: + url: 'http://localhost' + entryScript: 'index-test.php' configFile: 'tests/functional/_config.php' diff --git a/framework/README.md b/framework/README.md index 0d146ce..7ea09fa 100644 --- a/framework/README.md +++ b/framework/README.md @@ -12,13 +12,13 @@ The preferred way to install this extension is through [composer](http://getcomp Either run ``` -php composer.phar require yiisoft/yii2-framework "*" +php composer.phar require "yiisoft/yii2 *" ``` or add ```json -"yiisoft/yii2-framework": "*" +"yiisoft/yii2": "*" ``` to the require section of your composer.json.