From b003f2a5da64cefc52d75804bf7ee0fbc53ffdaf Mon Sep 17 00:00:00 2001
From: Jeremy Fee <jmfee@usgs.gov>
Date: Thu, 4 Jan 2018 11:02:23 -0700
Subject: [PATCH] Add coverage to travis environment, comment in
 docs/develop.md

---
 .travis.yml     |  6 +++---
 docs/develop.md | 11 ++++++++++-
 2 files changed, 13 insertions(+), 4 deletions(-)

diff --git a/.travis.yml b/.travis.yml
index 87c689c86..3ee759212 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -21,11 +21,11 @@ before_install:
   - conda info -a
 install:
   - conda config --add channels conda-forge
-  - conda create -q -n test-environment python=$TRAVIS_PYTHON_VERSION obspy pycurl nose flake8
+  - conda create -q -n test-environment python=$TRAVIS_PYTHON_VERSION obspy pycurl nose flake8 coverage
   - source activate test-environment
 script:
-  - flake8 -v bin/ geomagio/ test/
-  - nosetests -v .
+  - flake8 --config=.flake8 bin/ geomagio/ test/
+  - nosetests .
 after_success:
   - nosetests --with-coverage --cover-package=geomagio --cover-xml
   - bash <(curl -s https://codecov.io/bash)
diff --git a/docs/develop.md b/docs/develop.md
index f94e5cf39..c5fd5d948 100644
--- a/docs/develop.md
+++ b/docs/develop.md
@@ -12,7 +12,7 @@ Begin Developing
 > Using Anaconda is recommended ( https://conda.io/miniconda.html ).
 
         conda config --add channels conda-forge
-        conda create --name geomagenv obspy pycurl flake8 nose
+        conda create --name geomagenv obspy pycurl flake8 nose coverage
         source activate geomagenv
 
 2. Fork this project on Github ( https://guides.github.com/activities/forking/ ).
@@ -43,6 +43,11 @@ Run unit tests using Nose
         cd geomag-algorithms
         nosetests
 
+- **Unit test coverage**
+
+        cd geomag-algorithms
+        nosetests --with-coverage --cover-package geomagio
+
 - **Automatically run linting and tests while developing**
 (Requires NodeJS)
 
@@ -50,6 +55,10 @@ Run unit tests using Nose
         npm install
         npm run watch
 
+There are also "npm run" aliases for individual commands which are listed by running
+
+        npm run
+
 
 Coding Standards
 ----------------
-- 
GitLab