mirror of
https://github.com/wallabag/wallabag.git
synced 2024-11-24 18:11:00 +00:00
Fix authentication for PR by external contributors
This commit is contained in:
parent
162954763e
commit
6daadb6c44
2 changed files with 10 additions and 0 deletions
7
.composer-auth.json
Normal file
7
.composer-auth.json
Normal file
|
@ -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"
|
||||
}
|
||||
}
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue