Skip to content
This repository has been archived by the owner on Jul 8, 2023. It is now read-only.

Commit

Permalink
Repository maintenance.
Browse files Browse the repository at this point in the history
  • Loading branch information
ezzatron committed Mar 4, 2013
1 parent 4419254 commit 31a7266
Show file tree
Hide file tree
Showing 14 changed files with 240 additions and 66 deletions.
5 changes: 4 additions & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# archer start
.gitattributes export-ignore
.gitignore export-ignore
.travis.yml export-ignore
.travis.* export-ignore
.archer.* export-ignore
test export-ignore
# archer end
6 changes: 4 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
test/report
vendor
# archer start
/artifacts/
/vendor/
# archer end
1 change: 1 addition & 0 deletions .travis.env
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3G+wU0c9r9fKxnWsHSpwKNAJMUVBAyqG3pkflpHJ8grfe/qJb5Od0HyW/IJHRcm8FoUtmz46AK3u/Xup34cah+6+8H7IR4TrW8/5YNLv7k8mAAN3LqQgP8K0kcdUgr9DibWRbhNLAHHZxMD0FXELWfxotj92XJiT5aNV+JjyQug=
26 changes: 26 additions & 0 deletions .travis.install
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
#!/usr/bin/env php
<?php
/**
* This script is executed before composer dependencies are installed,
* and as such must be included in each project as part of the skeleton.
*/
if ($token = getenv('ARCHER_TOKEN')) {
$config = array(
'config' => array(
'github-oauth' => array('github.com' => $token)
)
);

$file = '~/.composer/config.json';
$dir = dirname($file);
if (!is_dir($dir)) {
mkdir($dir, 0755, true);
}
file_put_contents($file, json_encode($config));

$composerFlags = '--prefer-dist';
} else {
$composerFlags = '--prefer-source';
}

passthru('composer install --dev --no-progress --no-interaction --ansi ' . $composerFlags);
6 changes: 6 additions & 0 deletions .travis.key
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
-----BEGIN RSA PUBLIC KEY-----
MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDiNuj+afvKEkTjTZN28lCo8rrG
gjN8X5qd34gnZPpsHU6QETQv58tYl3754P3HZb9eOzlvS1WVIukLVLcDQ22H7XBg
AfnidBMYWw2R0XPxBgdmCmsUbN9soALPOHpu7Zw9Mj1I9iMAAZ34iJKhc7TFTYlZ
Zoqr79OJ4lR8CfohxQIDAQAB
-----END RSA PUBLIC KEY-----
29 changes: 18 additions & 11 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,29 @@
#
# This is the default Travis CI configuration.
#
# It uses a GitHub OAuth token when fetching composer dependencies
# to avoid IP-based API throttling.
#
# It also allows publication of artifacts via an additional build.
#
language: php

php:
- 5.3.3
- 5.3
- 5.4
- 5.5

matrix:
# Use PHP 5.4 for coverage reporting.
include:
- php: 5.4
env:
- secure: "kGkszrQG6V6BAfwZmGAHRfaOHbn2o0hXuBfp8TutXtdc3dNFCy5ZVptJrTR3\nSQF4baDhRQDIBVWrIpbLiaLIVH/XxrstriGv5hfD7Mumun98/X2qXUOl0ku4\n69usbE9mfZ+z0yGsRti6Owt6Elz5qU+OsVpWgP5ZblT1K6OUACA="
env:
global:
- ARCHER_PUBLISH_VERSION=5.4
- secure: "3G+wU0c9r9fKxnWsHSpwKNAJMUVBAyqG3pkflpHJ8grfe/qJb5Od0HyW/IJHRcm8FoUtmz46AK3u/Xup34cah+6+8H7IR4TrW8/5YNLv7k8mAAN3LqQgP8K0kcdUgr9DibWRbhNLAHHZxMD0FXELWfxotj92XJiT5aNV+JjyQug="

install:
- ./.travis.install
script:
- ./vendor/bin/archer travis:build

matrix:
# PHP 5.5 is still in alpha, so ignore build failures.
allow_failures:
- php: 5.5

install: composer install --dev
script: ./vendor/bin/travis-build
after_success: ./vendor/bin/travis-success
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# PHP-LCS changelog

### 1.0.3

* [Archer](https://github.com/IcecaveStudios/archer) integration
* Implemented changelog
29 changes: 29 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Contributing

**PHP-LCS** is open source software; contributions from the community are
encouraged. Please take a moment to read these guidelines before submitting
changes.

### Code style

All PHP code must adhere to the
[PSR-2](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-2-coding-style-guide.md)
standards.

### Branching and pull requests

As a guideline, please follow this process:

1. [Fork the repository](https://help.github.com/articles/fork-a-repo).
2. Create a topic branch for the change:
* New features should branch from **develop**.
* Bug fixes to existing versions should branch from **master**.
* Please ensure the branch is clearly labelled as a feature or fix.
3. Make the relevant changes.
4. [Squash](http://git-scm.com/book/en/Git-Tools-Rewriting-History#Changing-Multiple-Commit-Messages)
commits if necessary.
4. Submit a pull request to the **develop** branch.

Please note this is a general guideline only. For more information on the
branching structure please see the
[git-flow cheatsheet](http://danielkummer.github.com/git-flow-cheatsheet/).
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright © 2012 Erin Millard
Copyright © 2013 Erin Millard

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
26 changes: 8 additions & 18 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,13 @@

*An implementation of the 'longest common subsequence' algorithm for PHP.*

## Installation

### With [Composer](http://getcomposer.org/)

* Add 'ezzatron/php-lcs' to your project's composer.json dependencies
* Run `php composer.phar install`
[![Build Status]](http://travis-ci.org/ezzatron/php-lcs)
[![Test Coverage]](http://ezzatron.com/php-lcs/artifacts/tests/coverage/)

### Bare installation
## Installation

* Clone from GitHub: `git clone git://github.com/ezzatron/php-lcs.git`
* Use a [PSR-0](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-0.md) compatible autoloader (namespace 'Ezzatron\LCS' in the 'src' directory)
Available as [Composer](http://getcomposer.org/) package
[ezzatron/php-lcs](https://packagist.org/packages/ezzatron/php-lcs).

## What is PHP-LCS?

Expand All @@ -34,7 +30,6 @@ From [Wikipedia](http://en.wikipedia.org/wiki/Longest_common_subsequence_problem
## Usage

```php
<?php
use Ezzatron\LCS\LCSSolver;

$solver = new LCSSolver;
Expand Down Expand Up @@ -74,11 +69,6 @@ if ($LCS === $expectedLCS) {
// the above outputs 'LCS solver is working.'
```

## Code quality

PHP-LCS strives to attain a high level of quality. A full test suite is
available, and code coverage is closely monitored.

### Latest revision test suite results
[![Build status](https://secure.travis-ci.org/ezzatron/php-lcs.png)](http://travis-ci.org/ezzatron/php-lcs)
[![Test coverage](http://ezzatron.github.com/php-lcs/coverage-report/coverage.png)](http://ezzatron.github.com/php-lcs/coverage-report/index.html)
<!-- references -->
[Build Status]: https://raw.github.com/ezzatron/php-lcs/gh-pages/artifacts/images/icecave/regular/build-status.png
[Test Coverage]: https://raw.github.com/ezzatron/php-lcs/gh-pages/artifacts/images/icecave/regular/coverage.png
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"php": ">=5"
},
"require-dev": {
"icecave/testing": "dev-master"
"icecave/archer": "~0.2"
},
"autoload": {
"psr-0": {
Expand Down
Loading

0 comments on commit 31a7266

Please sign in to comment.