2

我正在尝试在 Codeship 配置 CI 基础架构。我的本地meteor --test命令就像魅力一样,但我在 Codeship 遇到了一个奇怪的错误。

当地的:

I20141208-12:29:42.602(2)? Started
I20141208-12:29:42.602(2)? .
I20141208-12:29:42.603(2)? 
I20141208-12:29:42.603(2)? 1 spec, 0 failures
I20141208-12:29:42.603(2)? Finished in 0.014 seconds
PASSED jasmine-server-unit : Job => Job should be created with title, description, location and isRemote

代号:

=> Started proxy.
=> Started MongoDB.
=> Errors prevented startup:

While Building the application:
node_modules/velocity-cli/velocity-cli.js:1:15: Unexpected token ILLEGAL

=> Your application has errors. Waiting for file change.

设置命令:

curl -o meteor_install_script.sh https://install.meteor.com/
chmod +x meteor_install_script.sh
sed -i "s/type sudo >\/dev\/null 2>&1/\ false /g" meteor_install_script.sh
./meteor_install_script.sh 

测试命令:

meteor --test
4

3 回答 3

4

哎呀,

velocity-cli需要全局安装。在调用流星可执行文件之前,您能否将以下命令添加到您的设置步骤中?

npm install -g velocity-cli

免责声明:我正在为 Codeship 工作

于 2014-12-09T10:16:35.453 回答
1

你试过了吗

meteor run --test

命令?这就是velocity-cli 的创建者现在告诉要做的事情。

于 2015-05-20T16:23:17.343 回答
0

我通过将设置命令从 OP 更改为以下内容来使其工作:

curl -o meteor_install_script.sh https://install.meteor.com/
chmod +x meteor_install_script.sh
sed -i "s/type sudo >\/dev\/null 2>&1/\ false /g" meteor_install_script.sh
./meteor_install_script.sh
export PATH=$HOME/.meteor:$PATH
npm install -g velocity-cli

此外,为了它的价值,我使用黄瓜而不是茉莉花,这仍然适用。

于 2015-06-02T23:23:12.650 回答