运行 来自 TeamCity 的凉亭?

Running Bower from TeamCity?

我在 Windows 上建立了一个团队城市,分为 3 个步骤。我想包括一个凉亭步骤来安装项目中 bower.json 的所有依赖项,而不是检查 lib 文件夹。

当前步骤是:

  1. NPM(安装、安装 grunt-cli、安装 grunt)
  2. 咕噜
  3. 业力

我对 node 或 teamcity 不是很熟悉,尝试了以下操作。在(1)中增加了"install bower"。在 (1) 运行 node.js 和 "bower --force-latest" 之后添加了一个新步骤,但遇到了各种错误。请有人能一步一步地解释如何获得凉亭 运行 或者我是否应该这样做?

想通了:

1) installed grunt and bower onto the server
2) updated the PATH environment variables to include bower
3) rebooted the build box
4) added a command line build step running bower from the correct project working directory: bower install -f

有效!安装了所有凉亭包。然后业力单元测试就可以工作而不会抱怨依赖性!我现在可以从提交中删除 lib 文件夹...