This repository has been archived by the owner on Jul 8, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
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
14 changed files
with
1,235 additions
and
359 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 @@ | ||
3G+wU0c9r9fKxnWsHSpwKNAJMUVBAyqG3pkflpHJ8grfe/qJb5Od0HyW/IJHRcm8FoUtmz46AK3u/Xup34cah+6+8H7IR4TrW8/5YNLv7k8mAAN3LqQgP8K0kcdUgr9DibWRbhNLAHHZxMD0FXELWfxotj92XJiT5aNV+JjyQug= | ||
ZZocT3FEPwogN5Qsw69w6hqI/xfUeaP1LqKmFVujuMFDaX8xuNrYWHtyRCXemGfcefFqHGlVyGwORSivKI4TLeE1yDNGcJ1+AAAslC4eIAXi96Mm/RKgSR2Umul+JK7afI8XqxEnZLqmNs/sUCZvnr/93BhA9UTgcmj9LSgqOYM= |
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,37 @@ | ||
#!/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) | ||
) | ||
); | ||
// Update composer to the latest version ... | ||
passthru('composer self-update --no-interaction'); | ||
|
||
$file = '~/.composer/config.json'; | ||
$dir = dirname($file); | ||
if (!is_dir($dir)) { | ||
mkdir($dir, 0755, true); | ||
} | ||
file_put_contents($file, json_encode($config)); | ||
// 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: "3G+wU0c9r9fKxnWsHSpwKNAJMUVBAyqG3pkflpHJ8grfe/qJb5Od0HyW/IJHRcm8FoUtmz46AK3u/Xup34cah+6+8H7IR4TrW8/5YNLv7k8mAAN3LqQgP8K0kcdUgr9DibWRbhNLAHHZxMD0FXELWfxotj92XJiT5aNV+JjyQug=" | ||
- ARCHER_PUBLISH_VERSION=5.5 | ||
- secure: "ZZocT3FEPwogN5Qsw69w6hqI/xfUeaP1LqKmFVujuMFDaX8xuNrYWHtyRCXemGfcefFqHGlVyGwORSivKI4TLeE1yDNGcJ1+AAAslC4eIAXi96Mm/RKgSR2Umul+JK7afI8XqxEnZLqmNs/sUCZvnr/93BhA9UTgcmj9LSgqOYM=" | ||
|
||
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,6 +1,12 @@ | ||
# PHP-LCS changelog | ||
|
||
### 1.0.3 | ||
## 2.0.0 (2014-02-17) | ||
|
||
* [Archer](https://github.com/IcecaveStudios/archer) integration | ||
* Implemented changelog | ||
- **[BC BREAK]** Moved to Eloquent | ||
- **[NEW]** Customizable comparator | ||
- **[NEW]** API documentation | ||
|
||
## 1.0.3 (2013-03-04) | ||
|
||
- **[NEW]** [Archer](https://github.com/IcecaveStudios/archer) integration | ||
- **[NEW]** Implemented changelog |
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
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.