Commit 0d263a12 by Carsten Brandt

added .travis.yml to basic app

issue #1744
parent 6291d0c2
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
...@@ -6,8 +6,7 @@ After creating the basic application, follow these steps to prepare for the test ...@@ -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: 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/codeception *" "codeception/specify *"
php composer.phar require --dev "codeception/specify": "*"
``` ```
2. In the file `_bootstrap.php`, modify the definition of the constant `TEST_ENTRY_URL` so 2. In the file `_bootstrap.php`, modify the definition of the constant `TEST_ENTRY_URL` so
......
...@@ -14,4 +14,6 @@ modules: ...@@ -14,4 +14,6 @@ modules:
- Yii2 - Yii2
config: config:
Yii2: Yii2:
url: 'http://localhost'
entryScript: 'index-test.php'
configFile: 'tests/functional/_config.php' configFile: 'tests/functional/_config.php'
...@@ -12,13 +12,13 @@ The preferred way to install this extension is through [composer](http://getcomp ...@@ -12,13 +12,13 @@ The preferred way to install this extension is through [composer](http://getcomp
Either run Either run
``` ```
php composer.phar require yiisoft/yii2-framework "*" php composer.phar require "yiisoft/yii2 *"
``` ```
or add or add
```json ```json
"yiisoft/yii2-framework": "*" "yiisoft/yii2": "*"
``` ```
to the require section of your composer.json. to the require section of your composer.json.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment