add code coverage to CI. add codecov badge

This commit is contained in:
Luke 2017-05-06 00:05:45 -07:00
parent 3be3c6ce9c
commit aeaa51e951
3 changed files with 7 additions and 2 deletions

4
.gitignore vendored
View File

@ -1,3 +1,5 @@
.idea
.packages
pubspec.lock
pubspec.lock
coverage
__temp_coverage*

View File

@ -13,7 +13,9 @@ before_script:
- ./scripts/travis_setup.sh
- ./flutter/bin/flutter doctor
script:
- ./flutter/bin/flutter test
- ./flutter/bin/flutter test --coverage
after_success:
- bash <(curl -s https://codecov.io/bash) -t $CODE_COV_TOKEN
cache:
directories:
- $HOME/.pub-cache

View File

@ -1,6 +1,7 @@
# Router
[![Build Status](https://travis-ci.org/goposse/flutter-router.svg?branch=master)](https://travis-ci.org/goposse/flutter-router)
[![codecov](https://codecov.io/gh/goposse/flutter-router/branch/master/graph/badge.svg)](https://codecov.io/gh/goposse/flutter-router)
## Getting started