【问题标题】:Testing Meteor with Velocity at Codeship在 Codeship 以速度测试 Meteor
【发布时间】:2015-02-06 00:07:48
【问题描述】:

我正在尝试在 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

【问题讨论】:

    标签: meteor jasmine-node codeship meteor-velocity


    【解决方案1】:

    喂,

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

    npm install -g velocity-cli

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

    【讨论】:

      【解决方案2】:

      你试过了吗

      meteor run --test
      

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

      【讨论】:

      • 您确定问题还需要答案吗? “14 年 12 月 8 日问”
      【解决方案3】:

      我通过将设置命令从 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
      

      另外,我用黄瓜代替茉莉花是值得的,这仍然适用。

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多