travis ci wip
This commit is contained in:
43
.travis.yml
43
.travis.yml
@ -0,0 +1,43 @@
|
|||||||
|
# faster builds on new travis setup not using sudo
|
||||||
|
sudo: false
|
||||||
|
|
||||||
|
language: php
|
||||||
|
|
||||||
|
php:
|
||||||
|
- 5.4
|
||||||
|
- 5.5
|
||||||
|
- 5.6
|
||||||
|
- 7.0
|
||||||
|
- 7.1
|
||||||
|
- nightly
|
||||||
|
|
||||||
|
matrix:
|
||||||
|
fast_finish: true
|
||||||
|
allow_failures:
|
||||||
|
- php: nightly
|
||||||
|
|
||||||
|
# cache vendor dirs
|
||||||
|
cache:
|
||||||
|
directories:
|
||||||
|
- vendor
|
||||||
|
- $HOME/.composer/cache
|
||||||
|
|
||||||
|
install:
|
||||||
|
- travis_retry composer self-update && composer --version
|
||||||
|
- export PATH="$HOME/.composer/vendor/bin:$PATH"
|
||||||
|
- travis_retry composer install --prefer-dist --no-interaction
|
||||||
|
|
||||||
|
before_script:
|
||||||
|
- php -r "echo INTL_ICU_VERSION . \"\n\";"
|
||||||
|
- php -r "echo INTL_ICU_DATA_VERSION . \"\n\";"
|
||||||
|
- mysql --version
|
||||||
|
|
||||||
|
# initialize database
|
||||||
|
- mysql -e 'CREATE DATABASE `yii2-usuario-test`;';
|
||||||
|
- mysql -e "CREATE USER 'user'@'localhost' IDENTIFIED WITH mysql_native_password;";
|
||||||
|
- mysql -e "GRANT ALL PRIVILEGES ON *.* TO 'user'@'localhost' WITH GRANT OPTION;";
|
||||||
|
- mysql -u user -p "yii2-usuario-test" < tests/data/schema.sql
|
||||||
|
|
||||||
|
script:
|
||||||
|
- composer validate --no-check-lock
|
||||||
|
- vendor/bin/codecept run
|
||||||
|
|||||||
@ -2,11 +2,10 @@ Yii2 Usuario Extension
|
|||||||
======================
|
======================
|
||||||
|
|
||||||
[](https://gitter.im/2amigos/yii2-usuario?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
|
[](https://gitter.im/2amigos/yii2-usuario?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
|
||||||
|
[](http://yii2-usuario.readthedocs.io/en/latest/?badge=latest)
|
||||||
[](https://packagist.org/packages/2amigos/yii2-usuario)
|
[](https://packagist.org/packages/2amigos/yii2-usuario)
|
||||||
[](https://packagist.org/packages/2amigos/yii2-usuario)
|
[](https://packagist.org/packages/2amigos/yii2-usuario)
|
||||||
[](//packagist.org/packages/2amigos/yii2-usuario)
|
[](//packagist.org/packages/2amigos/yii2-usuario)
|
||||||
[](http://yii2-usuario.readthedocs.io/en/latest/?badge=latest)
|
|
||||||
|
|
||||||

|

|
||||||

|

|
||||||
|
|||||||
@ -11,9 +11,9 @@ settings:
|
|||||||
modules:
|
modules:
|
||||||
config:
|
config:
|
||||||
Db:
|
Db:
|
||||||
dsn: 'mysql:host=localhost;dbname=test'
|
dsn: 'mysql:host=localhost;dbname=yii2-usuario-test'
|
||||||
user: 'root'
|
user: 'user'
|
||||||
password:
|
password: ''
|
||||||
dump: tests/_data/schema.sql
|
dump: tests/_data/schema.sql
|
||||||
Yii2:
|
Yii2:
|
||||||
configFile: 'tests/_app/config/test.php'
|
configFile: 'tests/_app/config/test.php'
|
||||||
|
|||||||
@ -56,7 +56,8 @@
|
|||||||
"phpmd/phpmd": "^2.4",
|
"phpmd/phpmd": "^2.4",
|
||||||
"yiisoft/yii2-codeception": "^2.0.0",
|
"yiisoft/yii2-codeception": "^2.0.0",
|
||||||
"codeception/specify": "^0.4.3",
|
"codeception/specify": "^0.4.3",
|
||||||
"codeception/verify": "^0.3.1"
|
"codeception/verify": "^0.3.1",
|
||||||
|
"codeception/codeception": "*"
|
||||||
},
|
},
|
||||||
"autoload": {
|
"autoload": {
|
||||||
"psr-4": {
|
"psr-4": {
|
||||||
|
|||||||
@ -1,10 +1,11 @@
|
|||||||
Yii2 Usuario Extension Documentation
|
Yii2 Usuario Extension Documentation
|
||||||
====================================
|
====================================
|
||||||
|
|
||||||
|
[](https://gitter.im/2amigos/yii2-usuario?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
|
||||||
|
[](http://yii2-usuario.readthedocs.io/en/latest/?badge=latest)
|
||||||
[](https://packagist.org/packages/2amigos/yii2-usuario)
|
[](https://packagist.org/packages/2amigos/yii2-usuario)
|
||||||
[](https://packagist.org/packages/2amigos/yii2-usuario)
|
[](https://packagist.org/packages/2amigos/yii2-usuario)
|
||||||
[](//packagist.org/packages/2amigos/yii2-usuario)
|
[](//packagist.org/packages/2amigos/yii2-usuario)
|
||||||
[](http://yii2-usuario.readthedocs.io/en/latest/?badge=latest)
|
|
||||||
|
|
||||||

|

|
||||||

|

|
||||||
|
|||||||
@ -2,8 +2,8 @@
|
|||||||
|
|
||||||
$db = [
|
$db = [
|
||||||
'class' => 'yii\db\Connection',
|
'class' => 'yii\db\Connection',
|
||||||
'dsn' => 'mysql:host=localhost;dbname=test',
|
'dsn' => 'mysql:host=localhost;dbname=yii2-usuario-test',
|
||||||
'username' => 'root',
|
'username' => 'user',
|
||||||
'password' => '',
|
'password' => '',
|
||||||
'charset' => 'utf8',
|
'charset' => 'utf8',
|
||||||
];
|
];
|
||||||
|
|||||||
Reference in New Issue
Block a user