所以我bitbucket-pipelines.yml
为我的 python 应用程序设置了一个。它需要一个 postgres 数据库,所以我按照这里的教程(https://confluence.atlassian.com/bitbucket/test-with-databases-in-bitbucket-pipelines-856697462.html)引导我进行以下配置:
image: node
pipelines:
default:
- step:
script:
- npm install
- npm test
services:
- postgres
definitions:
services:
postgres:
image: postgres
environment:
POSTGRES_DB: 'pipelines'
POSTGRES_USER: 'test_user'
POSTGRES_PASSWORD: 'test_user_password'
我的数据库中需要一些特定的扩展,我该如何添加这些。我试图在安装它们的脚本中添加一个额外的内容,但此时 postgres 似乎没有启动并运行。