Meteor 以代码船的速度测试流星

Meteor 以代码船的速度测试流星,meteor,jasmine-node,codeship,meteor-velocity,Meteor,Jasmine Node,Codeship,Meteor Velocity,我正试图在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

我正试图在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
编码:

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
设置命令:

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
测试命令:

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
啊,

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

npm安装-g velocity cli

免责声明:我为Codeship工作

你试过了吗

meteor run --test

指挥部?这就是创作者现在要做的。

我通过将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

另外,为了它的价值,我用黄瓜代替茉莉花,这仍然适用。

你确定这个问题仍然需要答案吗?“14年12月8日询问”