Skip to content

Commit

Permalink
Updated dependencies.
Browse files Browse the repository at this point in the history
  • Loading branch information
klaussilveira committed Aug 22, 2017
1 parent 9f77f50 commit cc1dc5a
Show file tree
Hide file tree
Showing 37 changed files with 2,805 additions and 1,645 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,4 @@ config.ini
cache.properties
composer.phar
phpunit.xml
.php_cs.cache
29 changes: 29 additions & 0 deletions .php_cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<?php

$finder = PhpCsFixer\Finder::create()
->in(__DIR__ . '/src')
->in(__DIR__ . '/tests');

return PhpCsFixer\Config::create()
->setRules([
'@Symfony' => true,
'array_syntax' => ['syntax' => 'short'],
'blank_line_after_opening_tag' => true,
'concat_space' => ['spacing' => 'one'],
'method_argument_space' => ['ensure_fully_multiline' => true],
'modernize_types_casting' => true,
'no_multiline_whitespace_before_semicolons' => true,
'no_useless_else' => true,
'no_useless_return' => true,
'ordered_class_elements' => true,
'ordered_imports' => true,
'phpdoc_align' => false,
'phpdoc_order' => true,
'php_unit_construct' => true,
'php_unit_dedicate_assert' => true,
'pre_increment' => false,
'single_line_comment_style' => true,
])
->setFinder($finder)
->setUsingCache(true)
->setRiskyAllowed(true);
21 changes: 15 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,20 @@
language: php

before_script:
- curl -s http://getcomposer.org/installer | php
- php composer.phar install --dev

php:
- 5.3
- 5.4
- 7.0
- 7.1

cache:
directories:
- vendor

install:
- travis_retry composer install --no-interaction --prefer-source

script:
- vendor/bin/php-cs-fixer fix --dry-run -v
- vendor/bin/phpunit --verbose

script: phpunit
matrix:
fast_finish: true
2 changes: 1 addition & 1 deletion LICENSE.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright (c) 2012-2015, Klaus Silveira and contributors
Copyright (c) 2012, Klaus Silveira and contributors
All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# GitList: an elegant git repository viewer
[![Build Status](https://secure.travis-ci.org/klaussilveira/gitlist.png)](http://travis-ci.org/klaussilveira/gitlist)

GitList is an elegant and modern web interface for interacting with multiple git repositories. It allows you to browse repositories using your favorite browser, viewing files under different revisions, commit history, diffs. It also generates RSS feeds for each repository, allowing you to stay up-to-date with the latest changes anytime, anywhere. GitList was written in PHP, on top of the [Silex](http://silex.sensiolabs.org/) microframework and powered by the Twig template engine. This means that GitList is easy to install and easy to customize. Also, the GitList gorgeous interface was made possible due to [Bootstrap](http://twitter.github.com/bootstrap/).
GitList is an elegant and modern web interface for interacting with multiple git repositories. It allows you to browse repositories using your favorite browser, viewing files under different revisions, commit history, diffs. It also generates RSS feeds for each repository, allowing you to stay up-to-date with the latest changes anytime, anywhere. GitList was written in PHP, on top of the [Silex](http://silex.sensiolabs.org/) microframework and powered by the Twig template engine. This means that GitList is easy to install and easy to customize. Also, the GitList gorgeous interface was made possible due to [Bootstrap](http://twitter.github.com/bootstrap/).

## Features
* Multiple repository support
Expand All @@ -26,10 +26,10 @@ In order to run GitList on your server, you'll need:

* git
* Apache with mod_rewrite enabled or nginx
* PHP 5.3.3
* PHP 5.4

## Installation
* Download GitList from [gitlist.org](http://gitlist.org/) and decompress to your `/var/www/gitlist` folder, or anywhere else you want to place GitList.
* Download GitList from [gitlist.org](http://gitlist.org/) and decompress to your `/var/www/gitlist` folder, or anywhere else you want to place GitList.
* Do not download a branch or tag from GitHub, unless you want to use the development version. The version available for download at the website already has all dependencies bundled, so you don't have to use composer or any other tool
* Rename the `config.ini-example` file to `config.ini`.
* Open up the `config.ini` and configure your installation. You'll have to provide where your repositories are located.
Expand Down
11 changes: 5 additions & 6 deletions build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -87,17 +87,16 @@
</target>

<target name="phpcs" description="Find coding standard violations using PHP_CodeSniffer creating a log file for the continuous integration server">
<exec executable="${vendordir}/phpcs" output="/dev/null">
<arg value="--report=checkstyle" />
<arg value="--report-file=${basedir}/build/logs/checkstyle.xml" />
<arg value="--standard=PSR2" />
<arg path="${basedir}/src" />
<exec executable="${vendordir}/php-cs-fixer" output="${basedir}/build/logs/cs.xml">
<arg value="fix" />
<arg value="--dry-run" />
<arg value="--format=junit" />
</exec>
</target>

<target name="package" description="Package the application for distribution">
<copy todir="${basedir}/build/gitlist/">
<fileset dir="${basedir}" excludes="cache/**, build/**, tests/**, pkg_builder/**, phpunit.xml.dist, cache.properties, .gitignore, .travis.yml, build.xml, composer.json, composer.lock, config.ini" />
<fileset dir="${basedir}" excludes="cache/**, build/**, tests/**, pkg_builder/**, phpunit.xml.dist, cache.properties, .gitignore, .travis.yml, build.xml, composer.json, composer.lock, composer.phar, config.ini, .php_cs, .php_cs.cache" />
</copy>

<tar destfile="${basedir}/build/gitlist-master.tar.gz"
Expand Down
16 changes: 8 additions & 8 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,20 @@
"name": "klaussilveira/gitlist",
"description": "An elegant git repository viewer",
"require": {
"silex/silex": "1.*",
"twig/twig": "1.*",
"symfony/twig-bridge": "2.4.*",
"symfony/filesystem": "2.4.*",
"silex/silex": "~2.2",
"twig/twig": "~2.4",
"symfony/twig-bridge": "~3.3",
"symfony/filesystem": "~3.3",
"klaussilveira/gitter": "0.2.*"
},
"require-dev": {
"symfony/browser-kit": "2.3.*",
"symfony/css-selector": "2.3.*",
"phpunit/phpunit": "4.1.*",
"symfony/browser-kit": "~3.3",
"symfony/css-selector": "~3.3",
"phpunit/phpunit": "~5.0",
"phpmd/phpmd": "1.5.*",
"phploc/phploc": "2.0.*",
"sebastian/phpcpd": "2.0.*",
"squizlabs/php_codesniffer": "2.0.*@dev"
"friendsofphp/php-cs-fixer": "~2.4"
},
"minimum-stability": "stable",
"autoload": {
Expand Down
Loading

0 comments on commit cc1dc5a

Please sign in to comment.