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

Commit 31a7266

Browse files
committed
Repository maintenance.
1 parent 4419254 commit 31a7266

14 files changed

+240
-66
lines changed

.gitattributes

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1+
# archer start
12
.gitattributes export-ignore
23
.gitignore export-ignore
3-
.travis.yml export-ignore
4+
.travis.* export-ignore
5+
.archer.* export-ignore
46
test export-ignore
7+
# archer end

.gitignore

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
1-
test/report
2-
vendor
1+
# archer start
2+
/artifacts/
3+
/vendor/
4+
# archer end

.travis.env

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3G+wU0c9r9fKxnWsHSpwKNAJMUVBAyqG3pkflpHJ8grfe/qJb5Od0HyW/IJHRcm8FoUtmz46AK3u/Xup34cah+6+8H7IR4TrW8/5YNLv7k8mAAN3LqQgP8K0kcdUgr9DibWRbhNLAHHZxMD0FXELWfxotj92XJiT5aNV+JjyQug=

.travis.install

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
#!/usr/bin/env php
2+
<?php
3+
/**
4+
* This script is executed before composer dependencies are installed,
5+
* and as such must be included in each project as part of the skeleton.
6+
*/
7+
if ($token = getenv('ARCHER_TOKEN')) {
8+
$config = array(
9+
'config' => array(
10+
'github-oauth' => array('github.com' => $token)
11+
)
12+
);
13+
14+
$file = '~/.composer/config.json';
15+
$dir = dirname($file);
16+
if (!is_dir($dir)) {
17+
mkdir($dir, 0755, true);
18+
}
19+
file_put_contents($file, json_encode($config));
20+
21+
$composerFlags = '--prefer-dist';
22+
} else {
23+
$composerFlags = '--prefer-source';
24+
}
25+
26+
passthru('composer install --dev --no-progress --no-interaction --ansi ' . $composerFlags);

.travis.key

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
-----BEGIN RSA PUBLIC KEY-----
2+
MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDiNuj+afvKEkTjTZN28lCo8rrG
3+
gjN8X5qd34gnZPpsHU6QETQv58tYl3754P3HZb9eOzlvS1WVIukLVLcDQ22H7XBg
4+
AfnidBMYWw2R0XPxBgdmCmsUbN9soALPOHpu7Zw9Mj1I9iMAAZ34iJKhc7TFTYlZ
5+
Zoqr79OJ4lR8CfohxQIDAQAB
6+
-----END RSA PUBLIC KEY-----

.travis.yml

+18-11
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,29 @@
1+
#
2+
# This is the default Travis CI configuration.
3+
#
4+
# It uses a GitHub OAuth token when fetching composer dependencies
5+
# to avoid IP-based API throttling.
6+
#
7+
# It also allows publication of artifacts via an additional build.
8+
#
19
language: php
210

311
php:
4-
- 5.3.3
512
- 5.3
613
- 5.4
714
- 5.5
815

9-
matrix:
10-
# Use PHP 5.4 for coverage reporting.
11-
include:
12-
- php: 5.4
13-
env:
14-
- secure: "kGkszrQG6V6BAfwZmGAHRfaOHbn2o0hXuBfp8TutXtdc3dNFCy5ZVptJrTR3\nSQF4baDhRQDIBVWrIpbLiaLIVH/XxrstriGv5hfD7Mumun98/X2qXUOl0ku4\n69usbE9mfZ+z0yGsRti6Owt6Elz5qU+OsVpWgP5ZblT1K6OUACA="
16+
env:
17+
global:
18+
- ARCHER_PUBLISH_VERSION=5.4
19+
- secure: "3G+wU0c9r9fKxnWsHSpwKNAJMUVBAyqG3pkflpHJ8grfe/qJb5Od0HyW/IJHRcm8FoUtmz46AK3u/Xup34cah+6+8H7IR4TrW8/5YNLv7k8mAAN3LqQgP8K0kcdUgr9DibWRbhNLAHHZxMD0FXELWfxotj92XJiT5aNV+JjyQug="
20+
21+
install:
22+
- ./.travis.install
23+
script:
24+
- ./vendor/bin/archer travis:build
1525

26+
matrix:
1627
# PHP 5.5 is still in alpha, so ignore build failures.
1728
allow_failures:
1829
- php: 5.5
19-
20-
install: composer install --dev
21-
script: ./vendor/bin/travis-build
22-
after_success: ./vendor/bin/travis-success

CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# PHP-LCS changelog
2+
3+
### 1.0.3
4+
5+
* [Archer](https://github.com/IcecaveStudios/archer) integration
6+
* Implemented changelog

CONTRIBUTING.md

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# Contributing
2+
3+
**PHP-LCS** is open source software; contributions from the community are
4+
encouraged. Please take a moment to read these guidelines before submitting
5+
changes.
6+
7+
### Code style
8+
9+
All PHP code must adhere to the
10+
[PSR-2](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-2-coding-style-guide.md)
11+
standards.
12+
13+
### Branching and pull requests
14+
15+
As a guideline, please follow this process:
16+
17+
1. [Fork the repository](https://help.github.com/articles/fork-a-repo).
18+
2. Create a topic branch for the change:
19+
* New features should branch from **develop**.
20+
* Bug fixes to existing versions should branch from **master**.
21+
* Please ensure the branch is clearly labelled as a feature or fix.
22+
3. Make the relevant changes.
23+
4. [Squash](http://git-scm.com/book/en/Git-Tools-Rewriting-History#Changing-Multiple-Commit-Messages)
24+
commits if necessary.
25+
4. Submit a pull request to the **develop** branch.
26+
27+
Please note this is a general guideline only. For more information on the
28+
branching structure please see the
29+
[git-flow cheatsheet](http://danielkummer.github.com/git-flow-cheatsheet/).

LICENSE

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright © 2012 Erin Millard
1+
Copyright © 2013 Erin Millard
22

33
Permission is hereby granted, free of charge, to any person obtaining a copy
44
of this software and associated documentation files (the "Software"), to deal

README.md

+8-18
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,13 @@
22

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

5-
## Installation
6-
7-
### With [Composer](http://getcomposer.org/)
8-
9-
* Add 'ezzatron/php-lcs' to your project's composer.json dependencies
10-
* Run `php composer.phar install`
5+
[![Build Status]](http://travis-ci.org/ezzatron/php-lcs)
6+
[![Test Coverage]](http://ezzatron.com/php-lcs/artifacts/tests/coverage/)
117

12-
### Bare installation
8+
## Installation
139

14-
* Clone from GitHub: `git clone git://github.com/ezzatron/php-lcs.git`
15-
* 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)
10+
Available as [Composer](http://getcomposer.org/) package
11+
[ezzatron/php-lcs](https://packagist.org/packages/ezzatron/php-lcs).
1612

1713
## What is PHP-LCS?
1814

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

3632
```php
37-
<?php
3833
use Ezzatron\LCS\LCSSolver;
3934

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

77-
## Code quality
78-
79-
PHP-LCS strives to attain a high level of quality. A full test suite is
80-
available, and code coverage is closely monitored.
81-
82-
### Latest revision test suite results
83-
[![Build status](https://secure.travis-ci.org/ezzatron/php-lcs.png)](http://travis-ci.org/ezzatron/php-lcs)
84-
[![Test coverage](http://ezzatron.github.com/php-lcs/coverage-report/coverage.png)](http://ezzatron.github.com/php-lcs/coverage-report/index.html)
72+
<!-- references -->
73+
[Build Status]: https://raw.github.com/ezzatron/php-lcs/gh-pages/artifacts/images/icecave/regular/build-status.png
74+
[Test Coverage]: https://raw.github.com/ezzatron/php-lcs/gh-pages/artifacts/images/icecave/regular/coverage.png

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"php": ">=5"
1616
},
1717
"require-dev": {
18-
"icecave/testing": "dev-master"
18+
"icecave/archer": "~0.2"
1919
},
2020
"autoload": {
2121
"psr-0": {

0 commit comments

Comments
 (0)