Skip to content

Commit

Permalink
move travis script to external file for version detection
Browse files Browse the repository at this point in the history
  • Loading branch information
brandongoode committed Oct 25, 2017
1 parent a66d3bd commit d196c2e
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ node_js:
before_script:
- npm install -g grunt-cli nyc
script:
- nyc npm test && nyc report --reporter=text-lcov | coveralls
- travis-test
6 changes: 5 additions & 1 deletion Readme.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Dynamoose [![Build Status](https://travis-ci.org/automategreen/dynamoose.png)](https://travis-ci.org/automategreen/dynamoose)
# Dynamoose [![Build Status](https://travis-ci.org/automategreen/dynamoose.png)](https://travis-ci.org/automategreen/dynamoose) [![Coverage Status](https://coveralls.io/repos/github/automategreen/dynamoose/badge.svg?branch=master)](https://coveralls.io/github/automategreen/dynamoose?branch=master)


Dynamoose is a modeling tool for Amazon's DynamoDB (inspired by [Mongoose](http://mongoosejs.com/))
Expand Down Expand Up @@ -45,6 +45,10 @@ Cat.get(666)

The documentation can be found at https://dynamoosejs.com/api.

## Help Wanted!

Help improve Dynamoose. I need all the help I can get to imporve test coverage and the documentation. If you would like to help please look at the `/test` and `/docs/_docs` folders and make a PR.

## Change log

### Release 0.8
Expand Down
11 changes: 11 additions & 0 deletions travis-test
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/bash

set -ev

if [[ $(node --version) =~ "v0.12" ]]; then
npm test
else
nyc npm test && nyc report --reporter=text-lcov | coveralls
fi

exit 0;

0 comments on commit d196c2e

Please sign in to comment.