Skip to content

Commit

Permalink
Reverted dependency changes to run with PHP 5.3
Browse files Browse the repository at this point in the history
GitList 1.x is legacy software and there's no reason why it should
not run on old versions of PHP. With the series 2.x being under
development, we should strive to make this version stable and
compatible with most platforms, regardless of any maintainability
issues that might occur from having to support legacy ecosystems.
  • Loading branch information
klaussilveira committed May 18, 2018
1 parent 0e892b4 commit d5f2ae5
Show file tree
Hide file tree
Showing 25 changed files with 467 additions and 1,540 deletions.
27 changes: 0 additions & 27 deletions .php_cs

This file was deleted.

5 changes: 4 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
language: php

php:
- 5.3
- 5.4
- 5.5
- 5.6
- 7.0
- 7.1

Expand All @@ -12,7 +16,6 @@ install:
- travis_retry composer install --no-interaction --prefer-source

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

matrix:
Expand Down
27 changes: 8 additions & 19 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,16 @@ GitList is an elegant and modern web interface for interacting with multiple git
* Repository statistics

## Screenshots
[![GitList Screenshot](http://dl.dropbox.com/u/62064441/th1.jpg)](http://cloud.github.com/downloads/klaussilveira/gitlist/1.jpg)
[![GitList Screenshot](http://dl.dropbox.com/u/62064441/th2.jpg)](http://cloud.github.com/downloads/klaussilveira/gitlist/2.jpg)
[![GitList Screenshot](http://dl.dropbox.com/u/62064441/th3.jpg)](http://cloud.github.com/downloads/klaussilveira/gitlist/3.jpg)
[![GitList Screenshot](http://dl.dropbox.com/u/62064441/th4.jpg)](http://cloud.github.com/downloads/klaussilveira/gitlist/4.jpg)
[![GitList Screenshot](http://dl.dropbox.com/u/62064441/th5.jpg)](http://cloud.github.com/downloads/klaussilveira/gitlist/5.jpg)

You can also see a live demo [here](http://gitlist-khornberg.rhcloud.com/).
![Screenshot 1](https://raw.githubusercontent.com/klaussilveira/gitlist/gh-pages/img/roller/1.jpg)
![Screenshot 1](https://raw.githubusercontent.com/klaussilveira/gitlist/gh-pages/img/roller/2.jpg)
![Screenshot 1](https://raw.githubusercontent.com/klaussilveira/gitlist/gh-pages/img/roller/3.jpg)

## Requirements
In order to run GitList on your server, you'll need:

* PHP 5.3+
* git
* Apache with mod_rewrite enabled or nginx
* PHP 7
* Webserver (Apache, nginx, lighttpd)

## 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.
Expand All @@ -51,14 +47,8 @@ That's it, installation complete! If you're having problems, check the [Troubles
## License
[New BSD license](http://www.opensource.org/licenses/bsd-license.php)

## Todo
* improve the current test code coverage
* test the interface
* submodule support
* multilanguage support

## Development
GitList uses [Composer](http://getcomposer.org/) to manage dependencies and [Ant](http://ant.apache.org/) to build the project. In order to run all the targets in the build script, you will need [PHPUnit](http://www.phpunit.de/), [phpcpd](https://github.com/sebastianbergmann/phpcpd), [phploc](https://github.com/sebastianbergmann/phploc), [PHPMD](http://phpmd.org/) and [PHP_Depend](http://pdepend.org).
GitList uses [Composer](http://getcomposer.org/) to manage dependencies and [Ant](http://ant.apache.org/) to build the project.

Once you have all the dependencies set, you can clone the repository and run Ant:

Expand All @@ -80,9 +70,8 @@ If you have Composer in your path, things get easier. But you know the drill.
## Contributing
If you are a developer, we need your help. GitList is a young project and we have lots of stuff to do. Some developers are contributing with new features, others with bug fixes. But you can also dedicate yourself to refactoring the current codebase and improving what we already have. This is very important, we want GitList to be a state-of-the-art application, and we need your help for that.

* Stay tuned to possible bugs, suboptimal code, duplicated code, overcomplicated expressions and unused code with [PHPMD](http://ci.gitlist.org:8080/job/GitList%20\(master\)/9/pmdResult/?) in our CI server
* Try to fix any [violations](http://ci.gitlist.org:8080/job/GitList%20\(master\)/violations/) reported
* Improve the [test coverage](http://ci.gitlist.org:8080/job/GitList%20\(master\)/9/cloverphp-report/) by creating unit and functional tests
* Stay tuned to possible bugs, suboptimal code, duplicated code, overcomplicated expressions and unused code
* Improve the test coverage by creating unit and functional tests

## Further information
If you want to know more about customizing GitList, check the [Customization](https://github.com/klaussilveira/gitlist/wiki/Customizing) page on the wiki. Also, if you're having problems with GitList, check the [Troubleshooting](https://github.com/klaussilveira/gitlist/wiki/Troubleshooting) page. Don't forget to report issues and suggest new features! :)
52 changes: 4 additions & 48 deletions build.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<project name="gitlist" default="build">
<property name="vendordir" value="${basedir}/vendor/bin" />
<target name="build" depends="prepare,lint,phploc,pdepend,phpmd,phpcpd,phpunit,phpcs" />
<target name="build" depends="prepare,lint,phpunit" />
<target name="build-package" depends="prepare-package,package" />

<target name="clean" description="Clean build artifacts">
Expand All @@ -21,14 +21,14 @@
<copy file="config.ini-example" tofile="config.ini"/>
<exec executable="${basedir}/composer.phar" failonerror="true">
<arg value="install" />
<arg value="--dev" />
</exec>
</target>

<target name="prepare-package" description="Prepare for build">
<delete dir="${basedir}/vendor"/>
<exec executable="${basedir}/composer.phar" failonerror="true">
<arg value="install" />
<arg value="--no-dev" />
<arg value="--optimize-autoloader" />
</exec>
</target>
Expand All @@ -46,64 +46,20 @@
</apply>
</target>

<target name="phploc" description="Measure project size using PHPLOC">
<exec executable="${vendordir}/phploc">
<arg value="--log-csv" />
<arg value="${basedir}/build/logs/phploc.csv" />
<arg path="${basedir}/src" />
</exec>
</target>

<target name="pdepend" description="Calculate software metrics using PHP_Depend">
<exec executable="${vendordir}/pdepend">
<arg value="--jdepend-xml=${basedir}/build/logs/jdepend.xml" />
<arg value="--jdepend-chart=${basedir}/build/pdepend/dependencies.svg" />
<arg value="--overview-pyramid=${basedir}/build/pdepend/overview-pyramid.svg" />
<arg value="--ignore=${basedir}/cache,${basedir}/vendor" />
<arg path="${basedir}/src" />
</exec>
</target>

<target name="phpmd" description="Perform project mess detection using PHPMD creating a log file for the continuous integration server">
<exec executable="${vendordir}/phpmd">
<arg path="${basedir}/src" />
<arg value="xml" />
<arg value="codesize,design,unusedcode,naming" />
<arg value="--reportfile" />
<arg value="${basedir}/build/logs/pmd.xml" />
</exec>
</target>

<target name="phpcpd" description="Find duplicate code using PHPCPD">
<exec executable="${vendordir}/phpcpd">
<arg value="--log-pmd" />
<arg value="${basedir}/build/logs/pmd-cpd.xml" />
<arg path="${basedir}/src" />
</exec>
</target>

<target name="phpunit" description="Run unit tests with PHPUnit">
<exec executable="${vendordir}/phpunit" failonerror="true"/>
</target>

<target name="phpcs" description="Find coding standard violations using PHP_CodeSniffer creating a log file for the continuous integration server">
<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, composer.phar, config.ini, .php_cs, .php_cs.cache" />
<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" />
</copy>

<tar destfile="${basedir}/build/gitlist-master.tar.gz"
basedir="${basedir}/build/"
compression="gzip"
longfile="gnu"
excludes="gitlist-master.tar.gz, **/logs/**, **/pdepend/**"
excludes="gitlist-master.tar.gz, **/phpunit.xml.dist, **/composer.lock, **/composer.json, **/.travis.yml, **/test/**, **/tests/**, **/logs/**, **/pdepend/**"
/>
</target>
</project>
20 changes: 9 additions & 11 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,19 @@
"name": "klaussilveira/gitlist",
"description": "An elegant git repository viewer",
"require": {
"silex/silex": "~2.2",
"twig/twig": "~2.4",
"symfony/twig-bridge": "~3.0",
"symfony/filesystem": "~3.0",
"silex/silex": "1.3.*",
"twig/twig": "1.35.*",
"symfony/process": "2.8.*",
"symfony/http-kernel": "2.8.*",
"symfony/twig-bridge": "2.8.*",
"symfony/filesystem": "2.8.*",
"klaussilveira/gitter": "0.2.*"
},
"require-dev": {
"symfony/browser-kit": "~3.0",
"symfony/css-selector": "~3.0",
"symfony/browser-kit": "~2.8",
"symfony/css-selector": "~2.8",
"phpunit/phpunit": "~5.0",
"phpmd/phpmd": "1.5.*",
"phploc/phploc": "2.0.*",
"sebastian/phpcpd": "2.0.*",
"doctrine/annotations": "^1.4",
"friendsofphp/php-cs-fixer": "^2.5"
"doctrine/annotations": "^1.4"
},
"minimum-stability": "stable",
"autoload": {
Expand Down
Loading

0 comments on commit d5f2ae5

Please sign in to comment.