-
Notifications
You must be signed in to change notification settings - Fork 1
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
17 changed files
with
538 additions
and
957 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 |
---|---|---|
@@ -0,0 +1,37 @@ | ||
#!/usr/bin/env php | ||
<?php | ||
// 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'; | ||
} | ||
|
||
$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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
language: php | ||
|
||
php: ["5.5", "5.6", "7.0", "hhvm", "hhvm-nightly"] | ||
|
||
matrix: | ||
allow_failures: [{"php": "hhvm"}, {"php": "hhvm-nightly"}] | ||
fast_finish: true | ||
|
||
env: | ||
global: | ||
- ARCHER_PUBLISH_VERSION=5.6 | ||
|
||
|
||
install: | ||
- ./.travis.install | ||
|
||
script: | ||
- ./vendor/bin/archer travis:build |
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,5 @@ | ||
# Flip Changelog | ||
|
||
### 0.1.0 (2015-11-17) | ||
|
||
* Initial 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
Oops, something went wrong.