This repository has been archived by the owner on Jul 8, 2023. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
33 changed files
with
1,816 additions
and
1,120 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
Ob4Tk/LbPO+MA2+t5gzLmh+/9Q7hPOsMdoAkrIrIS9NJuN7j+Njf2rg3yPq9TZjXpbGnQaR0avSaiCfpjkVfWMOYYtyU6Duotgp71lpshQhM3owIifkEfqRhh3mP/sOnTjcW9bpD2A/97u3mK9Gc2nyw1nNIn5egD85VJ10KYis= | ||
pTSn8XE11MNuOBzY6d53r/8q20eT+HAtllIOn4q3Jp9nsxlzTx9ORQvwT8LBiDW8TTY87h+TuwawA9AYA/tA0QWPAkI3lD9HqW5/DS0p1aS9ssRywq5KJXs/N8MaqTUfom+RdPkpCwSvAYxWcjy9CXkp+zYVwPPZpg7x2k1rxuY= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,42 @@ | ||
#!/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)); | ||
// 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 | ||
) | ||
); | ||
|
||
if ($token = getenv('ARCHER_TOKEN')) { | ||
$config['config']['github-oauth'] = array( | ||
'github.com' => $token | ||
); | ||
$composerFlags = '--prefer-dist'; | ||
} else { | ||
$composerFlags = '--prefer-source'; | ||
} | ||
|
||
passthru('composer install --dev --no-progress --no-interaction --ansi ' . $composerFlags); | ||
$file = '~/.composer/config.json'; | ||
$dir = dirname($file); | ||
if (!is_dir($dir)) { | ||
mkdir($dir, 0755, true); | ||
} | ||
file_put_contents($file, json_encode($config)); | ||
|
||
// 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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +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 | ||
- secure: "Ob4Tk/LbPO+MA2+t5gzLmh+/9Q7hPOsMdoAkrIrIS9NJuN7j+Njf2rg3yPq9TZjXpbGnQaR0avSaiCfpjkVfWMOYYtyU6Duotgp71lpshQhM3owIifkEfqRhh3mP/sOnTjcW9bpD2A/97u3mK9Gc2nyw1nNIn5egD85VJ10KYis=" | ||
- ARCHER_PUBLISH_VERSION=5.5 | ||
- secure: "pTSn8XE11MNuOBzY6d53r/8q20eT+HAtllIOn4q3Jp9nsxlzTx9ORQvwT8LBiDW8TTY87h+TuwawA9AYA/tA0QWPAkI3lD9HqW5/DS0p1aS9ssRywq5KJXs/N8MaqTUfom+RdPkpCwSvAYxWcjy9CXkp+zYVwPPZpg7x2k1rxuY=" | ||
|
||
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,25 @@ | ||
# Liberator changelog | ||
|
||
### 1.1.1 | ||
## 2.0.0 (2014-02-09) | ||
|
||
* Added [icecave/archer](https://github.com/IcecaveStudios/archer) integration | ||
* Repository maintenance | ||
- **[BC BREAK]** Some class members that were previously protected are now | ||
private. It is very unlikely that this affects anyone at all, but technically | ||
it's backwards incompatible. | ||
- **[NEW]** Added an interface for identifying liberator proxied values. | ||
- **[NEW]** API documentation | ||
- **[MAINTENANCE]** Repository maintenance | ||
|
||
### 1.1.0 | ||
## 1.1.1 (2013-03-04) | ||
|
||
* Improved API | ||
- **[NEW]** Added [Archer] integration | ||
- **[MAINTENANCE]** Repository maintenance | ||
|
||
### 1.0.0 | ||
[Archer]: https://github.com/IcecaveStudios/archer | ||
|
||
* Initial stable release | ||
## 1.1.0 (2012-08-02) | ||
|
||
- **[IMPROVED]** Improved API | ||
|
||
## 1.0.0 (2012-08-02) | ||
|
||
- **[NEW]** Initial stable release |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.