From: Nicolas LÅ“uillet Date: Sat, 27 Feb 2016 10:26:09 +0000 (+0100) Subject: Fix authentication for PR by external contributors X-Git-Tag: 2.0.0-beta.1~6^2~1 X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;ds=sidebyside;h=6daadb6c447757e87c1be9fa6df9917cc834603d;p=github%2Fwallabag%2Fwallabag.git Fix authentication for PR by external contributors --- diff --git a/.composer-auth.json b/.composer-auth.json new file mode 100644 index 00000000..3f3f20b2 --- /dev/null +++ b/.composer-auth.json @@ -0,0 +1,7 @@ +{ + "github-oauth": { + "github.com": "PLEASE DO NOT USE THIS TOKEN IN YOUR OWN PROJECTS/FORKS", + "github.com": "This token is reserved for testing the wallabag/wallabag repository", + "github.com": "dc690078d5c2effdbc5ca1a6a715ad5e9c075ff1" + } +} diff --git a/.travis.yml b/.travis.yml index 819d29fd..c6d371a5 100644 --- a/.travis.yml +++ b/.travis.yml @@ -47,6 +47,9 @@ before_script: - if [ -n "$GH_TOKEN" ]; then composer config github-oauth.github.com ${GH_TOKEN}; fi; - if [[ "$DB" = "pgsql" ]]; then psql -c 'create database wallabag;' -U postgres; fi; +before_install: + - if [[ $TRAVIS_REPO_SLUG = wallabag/wallabag ]]; then cp .composer-auth.json ~/.composer/auth.json; fi; + script: - travis_wait composer update --no-interaction --no-progress - ant prepare-$DB