-
Notifications
You must be signed in to change notification settings - Fork 48
add integration tests to CircleCI #58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
drichelson
merged 3 commits into
launchdarkly:master
from
abacaphiliac:update-provisioner-3
Feb 2, 2017
Merged
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
92a2699
refactor integration-test feature-generator to match v2 feature struc…
abacaphiliac 66656c7
split vagrant user bootstrap from root bootstrap. provisioner correct…
abacaphiliac e0efa74
add integration tests to CircleCI build. starts redis server on Circl…
abacaphiliac File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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,31 @@ | ||
| #!/bin/bash | ||
|
|
||
| echo | ||
| echo "install phpbrew and php54" | ||
| cd ~ | ||
| curl -s -L -O https://github.com/phpbrew/phpbrew/raw/master/phpbrew | ||
| chmod +x phpbrew | ||
| sudo mv phpbrew /usr/bin/phpbrew | ||
| phpbrew init | ||
| phpbrew known --update | ||
| phpbrew update | ||
| phpbrew install 5.4.34 +default | ||
|
|
||
| echo | ||
| echo "switch php54" | ||
| echo "source $HOME/.phpbrew/bashrc" >> /home/vagrant/.bashrc | ||
| source $HOME/.phpbrew/bashrc | ||
| phpbrew switch 5.4.34 | ||
|
|
||
| echo | ||
| echo "install php54-apc" | ||
| phpbrew ext install apc | ||
| echo "apc.enable_cli = 1" >> ~/.phpbrew/php/php-5.4.34/etc/php.ini | ||
| php -i | grep apc | ||
| echo "date.timezone =UTC" >> ~/.phpbrew/php/php-5.4.34/etc/php.ini | ||
|
|
||
| echo | ||
| echo "update project dependencies" | ||
| cd /home/vagrant/project/integration-tests | ||
| curl -sS https://getcomposer.org/installer | php | ||
| php composer.phar update | ||
This file contains hidden or 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 hidden or 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,34 @@ | ||
| <?php | ||
|
|
||
| namespace LaunchDarkly; | ||
|
|
||
| /** | ||
| * Feature requester from an LDD-populated redis, with APCu caching. | ||
| * | ||
| * Unlike APC, APCu is actively maintained and is available from php53 to php7. | ||
| * | ||
| * @package LaunchDarkly | ||
| */ | ||
| class ApcuLDDFeatureRequester extends ApcLDDFeatureRequester | ||
| { | ||
| /** | ||
| * @param $key | ||
| * @param null $success | ||
| * @return mixed | ||
| */ | ||
| protected function fetch($key, &$success = null) | ||
| { | ||
| return \apcu_fetch($key, $success); | ||
| } | ||
|
|
||
| /** | ||
| * @param $key | ||
| * @param $var | ||
| * @param int $ttl | ||
| * @return bool | ||
| */ | ||
| protected function add($key, $var, $ttl = 0) | ||
| { | ||
| return \apcu_add($key, $var, $ttl); | ||
| } | ||
| } |
This file contains hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One thing we have found useful in shell scripts is to add this line:
set -uxeat line 2 which will do some handy things described here
(I'll add the lines once it is merged)
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i'll add it right now in my drop-php54 branchlol i should really read the comment in its entirety before replying.