【发布时间】:2017-08-02 12:24:59
【问题描述】:
我正在尝试在我的 gitlab 服务器上启动节点服务器。我已经设置了我的gitlab-ci.yml 文件,这一切似乎都有效。但是,我想在测试完成后终止节点服务器。
我的gitlab-ci.yml 文件的相关部分如下所示:
unit_tests:
stage: test
variables:
GIT_STRATEGY: clone
script:
- npm install
- npm run websocket-server
- npm test
after_script:
- //what should go here to kill the node server after the tests have run?
【问题讨论】:
标签: javascript node.js gitlab-ci