anthonymayer / travis-ci-meteor-packages

Travis CI support for Meteor (Smart) Packages

Home Page:http://meteorhacks.com/travis-ci-support-for-meteor-packages.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

travis-ci-meteor-packages

Add following file to your meteor package as .travis.yml

language: node_js
node_js:
  - "0.10"
before_install:
  - "curl -L http://git.io/ejPSng | /bin/sh"

Login to https://travis-ci.org with Github and navigate to https://travis-ci.org/profile

Enable travis support for your project listed there.

Meteor Cluster - Travis Support

You can configure tests with two environment variables:

  • WORKING_DIR -- working directory to run meteor from
  • PACKAGES -- list of package names or directories to test, separated by ;, by default ./; specfiy empty string to test all packages
  • TEST_COMMAND -- you can specify a custom command to run, instead of default meteor, it gets all the arguments meteor would; this is useful if you want to do some more pre- or post-processing
  • METEOR_RELEASE -- you can specify the meteor release to run the tests with.

If you would like to specify more arguments (such as --settings), create a simple shell script and pass the path to TEST_COMMAND.

Create the following travis.sh (name not important):

#!/bin/sh
meteor "$@" --settings test/settings.travis.json

Add the following environment variable to your .travis.yml:

env: TEST_COMMAND=./travis.sh

Be sure to set the executable flag on your new script:

$ chmod +x travis.sh

See here for more information

About

Travis CI support for Meteor (Smart) Packages

http://meteorhacks.com/travis-ci-support-for-meteor-packages.html

License:MIT License


Languages

Language:JavaScript 83.9%Language:Shell 16.1%