Skip to content
This repository has been archived by the owner on Nov 21, 2017. 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 26, 2014
1 parent 1cfe490 commit e4335ec
Show file tree
Hide file tree
Showing 16 changed files with 221 additions and 142 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);
17 changes: 7 additions & 10 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,18 @@
#
# 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"]
php: ["5.3", "5.4", "5.5", "hhvm"]

matrix:
allow_failures:
- php: hhvm

env:
global:
- ARCHER_PUBLISH_VERSION=5.4
- ARCHER_PUBLISH_VERSION=5.5
- secure: "Lq96YFvZO96AafxxILw4JHDpDLHcvfyfPl8AIIW7SIqiI4uMnCkgUlsnZy5E8xHeTC3em5580Y8vPtWCqJqOON3Q3KtthI9aCHr/fryCq5UvbCxssP7AOw/4K+R2OesDNy0CvQMW4PtO8qyC7SI9DRYyxPwBQSi+mSu2ClCLFhY="

install:
- ./.travis.install

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

### 3.0.0 (2013-08-01)
## 3.0.1 (2014-01-26)

- **[MAINTENANCE]** General repository maintenance

## 3.0.0 (2013-08-01)

- **[BC BREAK]** `AST` namespace renamed to `Element`
- **[BC BREAK]** Interfaces renamed to match naming conventions
Expand All @@ -11,7 +15,7 @@
- **[IMPROVED]** Tag content can now span multiple lines
- **[MAINTENANCE]** General repository maintenance

### 2.0.0 (2013-03-04)
## 2.0.0 (2013-03-04)

- **[NEW]** [Archer] integration
- **[IMPROVED]** Removed Visita integration
Expand Down
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: 12 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@

*A parser for block comment documentation.*

[![Build Status]][Latest build]
[![Test Coverage]][Test coverage report]
[![The most recent stable version is 3.0.0]][Semantic versioning]
[![Current build status image]][Current build status]
[![Current coverage status image]][Current coverage status]

## Installation and documentation

Expand Down Expand Up @@ -124,7 +125,12 @@ are collapsed into a single space.
[eloquent/blox]: https://packagist.org/packages/eloquent/blox
[PCRE]: http://php.net/pcre

[Build Status]: https://api.travis-ci.org/eloquent/blox.png?branch=master
[Latest build]: https://travis-ci.org/eloquent/blox
[Test coverage report]: https://coveralls.io/r/eloquent/blox
[Test Coverage]: https://coveralls.io/repos/eloquent/blox/badge.png?branch=master
[API documentation]: http://lqnt.co/blox/artifacts/documentation/api/
[Composer]: http://getcomposer.org/
[Current build status image]: http://b.adge.me/travis/eloquent/blox/develop.svg "Current build status for the develop branch"
[Current build status]: https://travis-ci.org/eloquent/blox
[Current coverage status image]: http://b.adge.me/coveralls/eloquent/blox/develop.svg "Current test coverage for the develop branch"
[Current coverage status]: https://coveralls.io/r/eloquent/blox
[eloquent/blox]: https://packagist.org/packages/eloquent/blox
[Semantic versioning]: http://semver.org/
[The most recent stable version is 3.0.0]: http://b.adge.me/:semver-3.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\\Blox": "src"
"psr-4": {
"Eloquent\\Blox\\": "src"
}
}
}
Loading

0 comments on commit e4335ec

Please sign in to comment.