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 Jan 30, 2014
1 parent 4cfaf1f commit a556360
Show file tree
Hide file tree
Showing 47 changed files with 159 additions and 154 deletions.
21 changes: 14 additions & 7 deletions .travis.install
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
#!/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.
*/

// Update git to the latest version ...
passthru('sudo apt-get update');
passthru('sudo apt-get install git');

// Update composer to the latest version ...
passthru('composer self-update --no-interaction');

// Build a composer config that uses the GitHub OAuth token if it is available ...
$config = array(
'config' => array(
'notify-on-install' => false
Expand All @@ -16,20 +20,23 @@ if ($token = getenv('ARCHER_TOKEN')) {
'github.com' => $token
);
$composerFlags = '--prefer-dist';
passthru('curl -s -i -H "Authorization: token $ARCHER_TOKEN" https://api.github.com | grep "^X-RateLimit"');
} else {
$composerFlags = '--prefer-source';
}

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

passthru('composer self-update --no-interaction');
// Display some information about GitHub rate limiting ...
if ($token) {
passthru('curl -s -i -H "Authorization: token $ARCHER_TOKEN" https://api.github.com | grep "^X-RateLimit"');
}

// Install composer dependencies ...
$exitCode = 0;
passthru('composer install --dev --no-progress --no-interaction --ansi ' . $composerFlags, $exitCode);
exit($exitCode);
11 changes: 2 additions & 9 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,14 @@
#
# 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", "5.4", "5.5"]

env:
global:
- ARCHER_PUBLISH_VERSION=5.4
- ARCHER_PUBLISH_VERSION=5.5
- secure: "GLvEYXvqvUstaRhJ0blmDfxdpHxJ7+lfqciliflZZUDha7LD1fF3aLPzQa5TP5o6MahKNWTAQSnSchoWEjU4DXUKCXqNOknUjJJFx8TD55hvwx40uZzgqD6EYPC/8zr36qe/5InRETYxAS+/8EgMHzL1phm4+KWadHX4T4Mq3as="

install:
- ./.travis.install

script:
- ./vendor/bin/archer travis:build
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Pops changelog

### 4.0.0 (2013-09-04)
## 4.0.0 (2013-09-04)

- **[BC BREAK]** Interface name changes:
- `Proxy` -> `ProxyInterface`
Expand All @@ -9,7 +9,7 @@
- **[NEW]** API documentation
- **[MAINTENANCE]** Major repository maintanance

### 3.1.1 (2013-03-04)
## 3.1.1 (2013-03-04)

- **[NEW]** [Archer](https://github.com/IcecaveStudios/archer) integration
- **[NEW]** Implemented changelog
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright © 2013 Erin Millard
Copyright © 2014 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
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

*PHP Object Proxy System.*

[![Build Status]][Latest build]
[![Test Coverage]][Test coverage report]
[![Uses Semantic Versioning]][SemVer]
[![The most recent stable version is 4.0.0][version-image]][Semantic versioning]
[![Current build status image][build-image]][Current build status]
[![Current coverage status image][coverage-image]][Current coverage status]

## Installation and documentation

Expand Down Expand Up @@ -313,11 +313,11 @@ directly as a value. The arguments must also contain a **reference** to
[Liberator]: https://github.com/eloquent/liberator

[API documentation]: http://lqnt.co/pops/artifacts/documentation/api/
[Build Status]: https://api.travis-ci.org/eloquent/pops.png?branch=master
[Composer]: http://getcomposer.org/
[build-image]: http://img.shields.io/travis/eloquent/pops/develop.svg "Current build status for the develop branch"
[Current build status]: https://travis-ci.org/eloquent/pops
[coverage-image]: http://img.shields.io/coveralls/eloquent/pops/develop.svg "Current test coverage for the develop branch"
[Current coverage status]: https://coveralls.io/r/eloquent/pops
[eloquent/pops]: https://packagist.org/packages/eloquent/pops
[Latest build]: https://travis-ci.org/eloquent/pops
[SemVer]: http://semver.org/
[Test coverage report]: https://coveralls.io/r/eloquent/pops
[Test Coverage]: https://coveralls.io/repos/eloquent/pops/badge.png?branch=master
[Uses Semantic Versioning]: http://b.repl.ca/v1/semver-yes-brightgreen.png
[Semantic versioning]: http://semver.org/
[version-image]: http://img.shields.io/:semver-4.0.0-brightgreen.svg "This project uses semantic versioning"
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@
"php": ">=5.3"
},
"require-dev": {
"icecave/archer": "1.0.0-alpha.2"
"icecave/archer": "~1"
},
"autoload": {
"psr-0": {
"Eloquent\\Pops": "src"
"psr-4": {
"Eloquent\\Pops\\": "src"
}
}
}
Loading

0 comments on commit a556360

Please sign in to comment.