File tree 4 files changed +43
-4
lines changed
environments/dev/common/config
4 files changed +43
-4
lines changed Original file line number Diff line number Diff line change
1
+ language : php
2
+
3
+ php :
4
+ - 5.4
5
+ - 5.5
6
+ - 5.6
7
+ - 7.0
8
+ # - hhvm
9
+
10
+ # faster builds on new travis setup not using sudo
11
+ sudo : false
12
+
13
+ # cache vendor dirs
14
+ cache :
15
+ directories :
16
+ - $HOME/.composer/cache
17
+
18
+ install :
19
+ - travis_retry composer self-update && composer --version
20
+ - travis_retry composer global require "fxp/composer-asset-plugin:~1.1.0"
21
+ - travis_retry composer update --dev --prefer-dist --no-interaction
22
+ # setup application:
23
+ - |
24
+ ./init --env=Development
25
+ sed -i s/root/travis/ common/config/main-local.php
26
+ sed -i "s/'cookieValidationKey' => ''/'cookieValidationKey' => 'testkey'/" frontend/config/main.php
27
+ sed -i "s/'cookieValidationKey' => ''/'cookieValidationKey' => 'testkey'/" backend/config/main.php
28
+
29
+ before_script :
30
+ - mysql -e 'CREATE DATABASE yarcode_test;'
31
+ - php yii_test migrate --interactive=0
32
+
33
+ script :
34
+ - composer validate --strict
35
+ - composer exec codecept run
Original file line number Diff line number Diff line change 12
12
"minimum-stability" : " stable" ,
13
13
"require" : {
14
14
"php" : " >=5.4.0" ,
15
- "yiisoft/yii2" : " >= 2.0.7" ,
16
- "yiisoft/yii2-bootstrap" : " * " ,
17
- "yiisoft/yii2-swiftmailer" : " * " ,
15
+ "yiisoft/yii2" : " ~ 2.0.7" ,
16
+ "yiisoft/yii2-bootstrap" : " ~2.0.0 " ,
17
+ "yiisoft/yii2-swiftmailer" : " ~2.0.0 " ,
18
18
"yarcode/yii2-base" : " ^0.3.1" ,
19
19
"kartik-v/yii2-widget-alert" : " ^1.1" ,
20
20
"kartik-v/yii2-widget-growl" : " ^1.1" ,
Original file line number Diff line number Diff line change @@ -36,6 +36,10 @@ public function up()
36
36
'pattern ' => '/^\d+$/ ' ,
37
37
]);
38
38
39
+ if (empty ($ userId )) {
40
+ $ userId = 1 ;
41
+ }
42
+
39
43
$ auth ->assign ($ admin , $ userId );
40
44
}
41
45
Original file line number Diff line number Diff line change 6
6
[
7
7
'components ' => [
8
8
'db ' => [
9
- 'dsn ' => 'mysql:host=localhost;dbname=yii2advanced_test ' ,
9
+ 'dsn ' => 'mysql:host=localhost;dbname=yarcode_test ' ,
10
10
]
11
11
],
12
12
]
You can’t perform that action at this time.
0 commit comments