Skip to content

Commit

Permalink
[Travis] Update github auth token to use ENV variable
Browse files Browse the repository at this point in the history
  • Loading branch information
andrerom committed Jun 16, 2015
1 parent 0514077 commit 34a4429
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
9 changes: 7 additions & 2 deletions bin/.travis/install_composer_github_key.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
#!/bin/sh

mkdir -p ~/.composer
echo '{ "config": { "github-oauth": { "github.com": "cf20c86050d2c206b34d1fa8958dca40bfe08afd" } } }' > ~/.composer/config.json
# This is unfortunately only way to avoid Github API limits with Travis on an open source project.
# Please don't use our token, neither token nor it's user gives access to anything other then authentication, so better if you create your own.
# PS: The simple obfuscation here is only to avoid Github from detecting this on commits.
export EZ_GITHUB_TOKEN_A=`echo "574503f4468c5de5820d" | rev`
export EZ_GITHUB_TOKEN_B=`echo "90cf1c134798de2dae27" | rev`

composer config -g github-oauth.github.com "${EZ_GITHUB_TOKEN_A}${EZ_GITHUB_TOKEN_B}"
2 changes: 1 addition & 1 deletion bin/.travis/prepare_ezpublish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ echo "> Copy behat specific parameters.yml settings"
cp bin/.travis/parameters.yml ezpublish/config/

echo "> Install dependencies through composer"
composer install -n --prefer-dist
composer install --no-progress --no-interaction

if [ "$INSTALL" = "demoContentNonUniqueDB" ] ; then
echo "> Install ezplatform demo-content"
Expand Down

0 comments on commit 34a4429

Please sign in to comment.