Skip to content

Commit

Permalink
add coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
serut committed May 14, 2016
1 parent 0097d5f commit e1b2f41
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 3 deletions.
29 changes: 27 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,30 @@
sudo: false

language: node_js

node_js:
- "0.10"
- 0.10.40

cache:
directories:
- $HOME/.meteor
- $HOME/.npm

before_cache:
- rm -f $HOME/.meteor/log/*.log

before_install:
- "curl -L http://git.io/ejPSng | /bin/sh"
# Download Meteor
- PATH=$PATH:$HOME/.meteor
- if [ ! -e $HOME/.meteor/meteor ]; then curl https://install.meteor.com | sh; fi

# Install spacejam
- npm install -g https://github.com/serut/spacejam/tarball/master
- npm install -g https://github.com/nickmerwin/node-coveralls/tarball/master
- npm install -g eslint

script:
# Check clean code
- eslint .
# Run packages tests
- spacejam test-packages ./ --loglevel debug --coverage && cat lcov.info | coveralls
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
[![Build Status](https://travis-ci.org/aldeed/meteor-autoform.svg)](https://travis-ci.org/aldeed/meteor-autoform)
[![Build Status](https://travis-ci.org/serut/meteor-autoform.svg)](https://travis-ci.org/serut/meteor-autoform)
[![Coverage Status](https://coveralls.io/repos/github/serut/meteor-autoform/badge.svg?branch=master)](https://coveralls.io/github/serut/meteor-autoform?branch=master)

AutoForm
=========================
Expand Down
1 change: 1 addition & 0 deletions package.js
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,7 @@ Package.onUse(function(api) {
});

Package.onTest(function (api) {
api.use('lmieulet:meteor-coverage@0.7.1'); // Coverage dependency
api.use(['aldeed:autoform', 'tinytest', 'underscore', 'mongo']);
api.use('momentjs:moment', 'client');
api.addFiles(['tests/utility-tests.js', 'tests/autoform-tests.js']);
Expand Down

0 comments on commit e1b2f41

Please sign in to comment.