]> git.immae.eu Git - github/wallabag/wallabag.git/blobdiff - .travis.yml
Fix authentication for PR by external contributors
[github/wallabag/wallabag.git] / .travis.yml
index 9ae43639743a7b8b971d4b798d62083eb0907557..c6d371a50e3637bf4911c8894e7e6714211557d3 100644 (file)
@@ -34,9 +34,11 @@ matrix:
     allow_failures:
         - php: hhvm
 
+# exclude v1 branches
 branches:
-    only:
-        - v2
+    except:
+        - master
+        - dev
 
 before_script:
     - if [[ $TRAVIS_PHP_VERSION != hhvm ]]; then echo "memory_limit=-1" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini; fi;
@@ -45,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