Skip to content

Commit

Permalink
add php-cs-fixer, travis.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Igor Chepurnoy committed Dec 31, 2016
1 parent 8c57541 commit 726a4de
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 3 deletions.
22 changes: 22 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
language: php

php:
- 5.6

# faster builds on new travis setup not using sudo
sudo: false

# cache vendor dirs
cache:
directories:
- $HOME/.composer/cache
- vendor

install:
- travis_retry composer self-update && composer --version
- travis_retry composer global require "fxp/composer-asset-plugin:~1.1.1"
- export PATH="$HOME/.composer/vendor/bin:$PATH"
- travis_retry composer install --prefer-dist --no-interaction

script:
- vendor/friendsofphp/php-cs-fixer/php-cs-fixer fix --dry-run --diff
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@ Tree Widget for Yii 2
====================
Tree widget based on Fancytree extension http://wwwendt.de/tech/fancytree/demo/#sample-default.html

[![Latest Stable Version](https://poser.pugx.org/yii2mod/yii2-tree/v/stable)](https://packagist.org/packages/yii2mod/yii2-tree) [![Total Downloads](https://poser.pugx.org/yii2mod/yii2-tree/downloads)](https://packagist.org/packages/yii2mod/yii2-tree) [![License](https://poser.pugx.org/yii2mod/yii2-tree/license)](https://packagist.org/packages/yii2mod/yii2-tree)
[![Latest Stable Version](https://poser.pugx.org/yii2mod/yii2-tree/v/stable)](https://packagist.org/packages/yii2mod/yii2-tree)
[![Total Downloads](https://poser.pugx.org/yii2mod/yii2-tree/downloads)](https://packagist.org/packages/yii2mod/yii2-tree)
[![License](https://poser.pugx.org/yii2mod/yii2-tree/license)](https://packagist.org/packages/yii2mod/yii2-tree)
[![Build Status](https://travis-ci.org/yii2mod/yii2-tree.svg?branch=master)](https://travis-ci.org/yii2mod/yii2-tree)


Installation
Expand Down
7 changes: 5 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"type": "yii2-extension",
"keywords": [
"yii2",
"extension",
"tree"
"tree",
"tree widget"
],
"license": "MIT",
"authors": [
Expand All @@ -18,6 +18,9 @@
"yiisoft/yii2": "*",
"bower-asset/fancytree": "*"
},
"require-dev": {
"friendsofphp/php-cs-fixer": "~2.0"
},
"autoload": {
"psr-4": {
"yii2mod\\tree\\": ""
Expand Down

0 comments on commit 726a4de

Please sign in to comment.