Fix gitlab ci tests postgresql
authorChocobozzz <me@florianbigard.com>
Sun, 10 May 2020 07:41:34 +0000 (09:41 +0200)
committerChocobozzz <me@florianbigard.com>
Sun, 10 May 2020 08:41:55 +0000 (10:41 +0200)
.gitlab-ci.yml

index 29773241bd0585be5158f8304da41304dac8d783..7f142e1299478fcba8952cfe5099e5f03ac68b06 100644 (file)
@@ -160,8 +160,8 @@ test-external-plugins:
     - name: rroemhild/test-openldap
       alias: ldap
   variables:
-    POSTGRES_USER: postgres
-    POSTGRES_PASSWORD: ""
+    POSTGRES_USER: peertube
+    POSTGRES_PASSWORD: "peertube"
     POSTGRES_HOST_AUTH_METHOD: trust
     REDIS_HOST: redis
   artifacts:
@@ -172,7 +172,6 @@ test-external-plugins:
   before_script:
     - 'sed -i -z "s/database:\n  hostname: ''localhost''/database:\n  hostname: ''postgres''/" config/test.yaml'
     - 'sed -i -z "s/redis:\n  hostname: ''localhost''/redis:\n  hostname: ''redis''/" config/test.yaml'
-    - psql -c "create user peertube with password 'peertube';"
     - NOCLIENT=1 yarn install --pure-lockfile --cache-folder .yarn-cache
   script:
     - npm run ci -- "external-plugins"