]> git.immae.eu Git - github/wallabag/wallabag.git/commitdiff
Fix authentication for PR by external contributors
authorNicolas Lœuillet <nicolas@loeuillet.org>
Sat, 27 Feb 2016 10:26:09 +0000 (11:26 +0100)
committerNicolas Lœuillet <nicolas@loeuillet.org>
Sat, 27 Feb 2016 10:26:09 +0000 (11:26 +0100)
.composer-auth.json [new file with mode: 0644]
.travis.yml

diff --git a/.composer-auth.json b/.composer-auth.json
new file mode 100644 (file)
index 0000000..3f3f20b
--- /dev/null
@@ -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"
+    }
+}
index 819d29fdc947db3564094dca32d88410edeb3a43..c6d371a50e3637bf4911c8894e7e6714211557d3 100644 (file)
@@ -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