mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-16 22:39:52 +08:00
Merge branch 'master' of https://github.com/yiisoft/yii2
This commit is contained in:
14
.travis.yml
Normal file
14
.travis.yml
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
language: php
|
||||||
|
|
||||||
|
php:
|
||||||
|
- 5.3
|
||||||
|
- 5.4
|
||||||
|
- 5.5
|
||||||
|
|
||||||
|
env:
|
||||||
|
- DB=mysql
|
||||||
|
|
||||||
|
before_script:
|
||||||
|
- sh -c "if [ '$DB' = 'mysql' ]; then mysql -e 'create database IF NOT EXISTS yiitest;'; fi"
|
||||||
|
|
||||||
|
script: phpunit
|
||||||
@@ -16,5 +16,5 @@ require(__DIR__ . '/../framework/yii.php');
|
|||||||
$id = 'yiic-build';
|
$id = 'yiic-build';
|
||||||
$basePath = __DIR__;
|
$basePath = __DIR__;
|
||||||
|
|
||||||
$application = new yii\console\Application($id, $basePath);
|
$application = new yii\console\Application(array('id' => $id, 'basePath' => $basePath));
|
||||||
$application->run();
|
$application->run();
|
||||||
|
|||||||
13
phpunit.xml.dist
Normal file
13
phpunit.xml.dist
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<phpunit bootstrap="./tests/unit/bootstrap.php"
|
||||||
|
colors="true"
|
||||||
|
convertErrorsToExceptions="true"
|
||||||
|
convertNoticesToExceptions="true"
|
||||||
|
convertWarningsToExceptions="true"
|
||||||
|
stopOnFailure="false">
|
||||||
|
<testsuites>
|
||||||
|
<testsuite name="Yii Test Suite">
|
||||||
|
<directory>./tests/unit</directory>
|
||||||
|
</testsuite>
|
||||||
|
</testsuites>
|
||||||
|
</phpunit>
|
||||||
@@ -3,7 +3,7 @@
|
|||||||
return array(
|
return array(
|
||||||
'mysql' => array(
|
'mysql' => array(
|
||||||
'dsn' => 'mysql:host=127.0.0.1;dbname=yiitest',
|
'dsn' => 'mysql:host=127.0.0.1;dbname=yiitest',
|
||||||
'username' => 'root',
|
'username' => 'travis',
|
||||||
'password' => '',
|
'password' => '',
|
||||||
'fixture' => __DIR__ . '/mysql.sql',
|
'fixture' => __DIR__ . '/mysql.sql',
|
||||||
),
|
),
|
||||||
|
|||||||
@@ -1,7 +0,0 @@
|
|||||||
<phpunit bootstrap="bootstrap.php"
|
|
||||||
colors="false"
|
|
||||||
convertErrorsToExceptions="true"
|
|
||||||
convertNoticesToExceptions="true"
|
|
||||||
convertWarningsToExceptions="true"
|
|
||||||
stopOnFailure="false">
|
|
||||||
</phpunit>
|
|
||||||
Reference in New Issue
Block a user