Skip to content

Commit

Permalink
Added PHP 8 compatibility.
Browse files Browse the repository at this point in the history
  • Loading branch information
klaussilveira committed Jan 14, 2022
1 parent 434521a commit fff2aad
Show file tree
Hide file tree
Showing 8 changed files with 2,248 additions and 822 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: build

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
php:
- 7.4
- 8.0
- 8.1

steps:
- uses: actions/checkout@v2

- name: Validate composer.json and composer.lock
run: composer validate --strict

- name: Cache Composer packages
id: composer-cache
uses: actions/cache@v2
with:
path: vendor
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-php-
- name: Install dependencies
run: composer install --prefer-dist --no-progress

- name: Run test suite
run: composer run-script test
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,4 @@ phpunit.xml
.php_cs.cache
web.config
.vscode/
.phpunit.result.cache
22 changes: 0 additions & 22 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<p align="left"><img src="logo/horizontal.png" alt=gitlist" height="120px"></p>

# GitList: an elegant git repository viewer
[![Build Status](https://secure.travis-ci.org/klaussilveira/gitlist.png)](http://travis-ci.org/klaussilveira/gitlist)
![Build Status](https://github.com/klaussilveira/gitlist/actions/workflows/php.yml/badge.svg)

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/).

Expand Down
40 changes: 25 additions & 15 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,26 +1,36 @@
{
"name": "klaussilveira/gitlist",
"description": "An elegant git repository viewer",
"license": "BSD-2-Clause",
"require": {
"php": ">=5.3",
"doctrine/instantiator": "1.0.*",
"klaussilveira/gitter": "^0.4.0",
"phpdocumentor/reflection-docblock": "2.0.*",
"sebastian/comparator": "1.2.*",
"sebastian/recursion-context": "1.0.*",
"silex/silex": "1.3.*",
"symfony/filesystem": "2.8.*",
"symfony/http-kernel": "2.8.*",
"symfony/process": "2.8.*",
"symfony/twig-bridge": "2.8.*",
"twig/twig": "1.35.*"
"klaussilveira/gitter": "^1.0",
"silex/silex": "^1.3",
"symfony/filesystem": "^2.8",
"symfony/http-kernel": "^2.8",
"symfony/process": "^2.8",
"symfony/twig-bridge": "^2.8",
"twig/twig": "^1.35"
},
"require-dev": {
"symfony/browser-kit": "~2.8",
"symfony/css-selector": "~2.8",
"phpunit/phpunit": "~4.8"
"symfony/browser-kit": "^2.8",
"symfony/css-selector": "^2.8",
"phpunit/phpunit": "^9.5",
"rector/rector": "0.12.x-dev"
},
"minimum-stability": "stable",
"scripts": {
"test": [
"@unit",
"@lint"
],
"lint": [
"find src -name '*.php' -print0 | xargs -0 -n1 -P8 php -l"
],
"unit": [
"vendor/bin/phpunit"
]
},
"minimum-stability": "dev",
"autoload": {
"psr-4": {
"GitList\\": "src/"
Expand Down
Loading

0 comments on commit fff2aad

Please sign in to comment.