特拉维斯上的黑猩猩进行流星测试
Chimp on travis for meteor testing
我正在尝试在我的 meteor open source application. Since velocity is deprecated for the meteorJS and they recommend using Chimp 中实施测试框架,我正在尝试编写它的 travis.yml 文件。
首先我还没有任何测试。我只是想让 my build 变绿。到目前为止我的 .travis.yml 文件:
sudo: required
language: node_js
node_js:
- 0.12
install:
- curl https://install.meteor.com | /bin/sh
- meteor update
- npm install -g chimp
script:
- meteor
- chimp --ddp=http://localhost:3000 --watch --path=tests
env:
- SELENIUM_BROWSER=phantomjs
但这当然行不通,因为 meteor 一启动就阻塞了终端。因此,此脚本永远不会转到以 chimp 开头的行。
在 travis 上使用 chimp 的任何帮助将不胜感激..
谢谢
新版meteor现在有测试命令了!
sudo: false
language: node_js
before_install:
- curl https://install.meteor.com | /bin/sh
- export PATH="$HOME/.meteor:$PATH"
script:
- meteor build $HOME/build.tgz
cache:
directories:
- node_modules
before_script:
- meteor npm install
script:
- meteor add dispatch:mocha-phantomjs
- meteor test --once --driver-package dispatch:mocha-phantomjs
我正在尝试在我的 meteor open source application. Since velocity is deprecated for the meteorJS and they recommend using Chimp 中实施测试框架,我正在尝试编写它的 travis.yml 文件。
首先我还没有任何测试。我只是想让 my build 变绿。到目前为止我的 .travis.yml 文件:
sudo: required
language: node_js
node_js:
- 0.12
install:
- curl https://install.meteor.com | /bin/sh
- meteor update
- npm install -g chimp
script:
- meteor
- chimp --ddp=http://localhost:3000 --watch --path=tests
env:
- SELENIUM_BROWSER=phantomjs
但这当然行不通,因为 meteor 一启动就阻塞了终端。因此,此脚本永远不会转到以 chimp 开头的行。
在 travis 上使用 chimp 的任何帮助将不胜感激..
谢谢
新版meteor现在有测试命令了!
sudo: false
language: node_js
before_install:
- curl https://install.meteor.com | /bin/sh
- export PATH="$HOME/.meteor:$PATH"
script:
- meteor build $HOME/build.tgz
cache:
directories:
- node_modules
before_script:
- meteor npm install
script:
- meteor add dispatch:mocha-phantomjs
- meteor test --once --driver-package dispatch:mocha-phantomjs