]> git.immae.eu Git - github/wallabag/wallabag.git/blobdiff - .travis.yml
Fix postgres database creation
[github/wallabag/wallabag.git] / .travis.yml
index 819d29fdc947db3564094dca32d88410edeb3a43..db79baabe17b93e2bdfab3d8f81130e9d66cc0c0 100644 (file)
@@ -45,7 +45,10 @@ before_script:
     - if [[ $TRAVIS_PHP_VERSION != hhvm ]]; then phpenv config-rm xdebug.ini; fi;
     - composer self-update --no-progress
     - 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;
+    - if [[ "$DB" = "pgsql" ]]; then psql -c 'create database wallabag_test;' -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