我正在尝试在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
Codeship:
=> 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
答案 0 :(得分:4)
velocity-cli 需要全局安装。在调用 meteor 可执行文件之前,您可以在设置步骤中添加以下命令吗?
npm install -g velocity-cli
免责声明:我正在为Codeship工作
答案 1 :(得分:1)
meteor run --test
命令?这就是velocity-cli创作者现在要做的事情。
答案 2 :(得分: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
另外,为了它的价值,我使用的是黄瓜而不是茉莉,这仍然适用。