【发布时间】:2019-06-11 21:16:10
【问题描述】:
我正在尝试在我的 GitLab CI 管道上测试 Firestore 的安全规则。我需要运行 Firebase 的模拟器来完成。
但是,Firebase 模拟器基本上开始提供“假后端”。那么,我怎样才能使该作业与其他作业并行运行?
例如:
stages:
- emulator
- test
emulator:
- stage: emulator
script:
- firebase serve --only firestore
test:
- stage: test
script:
- yarn test
由于 GitLab 服务于 emulator 阶段,因此永远不会到达 test 阶段。因此,它永远不会结束。
【问题讨论】:
标签: firebase google-cloud-firestore continuous-integration gitlab firebase-tools