Skip to content

Commit

Permalink
travis ci wip
Browse files Browse the repository at this point in the history
  • Loading branch information
resurtm committed Dec 20, 2016
1 parent cf256e1 commit df60dbc
Show file tree
Hide file tree
Showing 6 changed files with 53 additions and 9 deletions.
43 changes: 43 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -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
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,10 @@ Yii2 Usuario Extension
======================

[![Join the chat at https://gitter.im/2amigos/yii2-usuario](https://badges.gitter.im/2amigos/yii2-usuario.svg)](https://gitter.im/2amigos/yii2-usuario?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)

[![Documentation Status](https://readthedocs.org/projects/yii2-usuario/badge/?version=latest)](http://yii2-usuario.readthedocs.io/en/latest/?badge=latest)
[![Latest Stable Version](https://poser.pugx.org/2amigos/yii2-usuario/version)](https://packagist.org/packages/2amigos/yii2-usuario)
[![Total Downloads](https://poser.pugx.org/2amigos/yii2-usuario/downloads)](https://packagist.org/packages/2amigos/yii2-usuario)
[![Latest Unstable Version](https://poser.pugx.org/2amigos/yii2-usuario/v/unstable)](//packagist.org/packages/2amigos/yii2-usuario)
[![Documentation Status](https://readthedocs.org/projects/yii2-usuario/badge/?version=latest)](http://yii2-usuario.readthedocs.io/en/latest/?badge=latest)

![Yii Framework](docs/media/yii-logo.png "Yii Framework")
![User Secret](docs/media/user-secret.png "User Secret")
Expand Down
6 changes: 3 additions & 3 deletions codeception.dist.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ settings:
modules:
config:
Db:
dsn: 'mysql:host=localhost;dbname=test'
user: 'root'
password:
dsn: 'mysql:host=localhost;dbname=yii2-usuario-test'
user: 'user'
password: ''
dump: tests/_data/schema.sql
Yii2:
configFile: 'tests/_app/config/test.php'
Expand Down
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@
"phpmd/phpmd": "^2.4",
"yiisoft/yii2-codeception": "^2.0.0",
"codeception/specify": "^0.4.3",
"codeception/verify": "^0.3.1"
"codeception/verify": "^0.3.1",
"codeception/codeception": "*"
},
"autoload": {
"psr-4": {
Expand Down
3 changes: 2 additions & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
Yii2 Usuario Extension Documentation
====================================

[![Join the chat at https://gitter.im/2amigos/yii2-usuario](https://badges.gitter.im/2amigos/yii2-usuario.svg)](https://gitter.im/2amigos/yii2-usuario?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
[![Documentation Status](https://readthedocs.org/projects/yii2-usuario/badge/?version=latest)](http://yii2-usuario.readthedocs.io/en/latest/?badge=latest)
[![Latest Stable Version](https://poser.pugx.org/2amigos/yii2-usuario/version)](https://packagist.org/packages/2amigos/yii2-usuario)
[![Total Downloads](https://poser.pugx.org/2amigos/yii2-usuario/downloads)](https://packagist.org/packages/2amigos/yii2-usuario)
[![Latest Unstable Version](https://poser.pugx.org/2amigos/yii2-usuario/v/unstable)](//packagist.org/packages/2amigos/yii2-usuario)
[![Documentation Status](https://readthedocs.org/projects/yii2-usuario/badge/?version=latest)](http://yii2-usuario.readthedocs.io/en/latest/?badge=latest)

![Yii Framework](media/yii-logo.png "Yii Framework")
![User Secret](media/user-secret.png "User Secret")
Expand Down
4 changes: 2 additions & 2 deletions tests/_app/config/db.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

$db = [
'class' => 'yii\db\Connection',
'dsn' => 'mysql:host=localhost;dbname=test',
'username' => 'root',
'dsn' => 'mysql:host=localhost;dbname=yii2-usuario-test',
'username' => 'user',
'password' => '',
'charset' => 'utf8',
];
Expand Down

0 comments on commit df60dbc

Please sign in to comment.