瀏覽代碼

Fix Drone CI services syntax.

Dan Helfman 5 年之前
父節點
當前提交
01e2cf08d1
共有 2 個文件被更改,包括 6 次插入6 次删除
  1. 5 5
      .drone.yml
  2. 1 1
      tests/end-to-end/test_database.py

+ 5 - 5
.drone.yml

@@ -3,7 +3,7 @@ kind: pipeline
 name: python-3-5-alpine-3-10
 
 services:
-  database:
+  - name: postgresql
     image: postgres:11.5
     ports:
       - "5432:5432"
@@ -22,7 +22,7 @@ kind: pipeline
 name: python-3-6-alpine-3-10
 
 services:
-  database:
+  - name: postgresql
     image: postgres:11.5
     ports:
       - "5432:5432"
@@ -41,7 +41,7 @@ kind: pipeline
 name: python-3-7-alpine-3-10
 
 services:
-  database:
+  - name: postgresql
     image: postgres:11.5
     ports:
       - "5432:5432"
@@ -60,7 +60,7 @@ kind: pipeline
 name: python-3-7-alpine-3-7
 
 services:
-  database:
+  - name: postgresql
     image: postgres:11.5
     ports:
       - "5432:5432"
@@ -79,7 +79,7 @@ kind: pipeline
 name: python-3-8-alpine-3-10
 
 services:
-  database:
+  - name: postgresql
     image: postgres:11.5
     ports:
       - "5432:5432"

+ 1 - 1
tests/end-to-end/test_database.py

@@ -26,7 +26,7 @@ storage:
 hooks:
     postgresql_databases:
         - name: test
-          hostname: localhost
+          hostname: postgresql
           username: postgres
           password: test
 '''.format(config_path, repository_path, borgmatic_source_directory)