Skip to content

Commit

Permalink
Merge pull request #52 from pllim/enable-coveralls
Browse files Browse the repository at this point in the history
Add coverage test on Travis CI
  • Loading branch information
pllim committed Sep 28, 2017
2 parents bfeeb6f + 1d99414 commit 8a43eab
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ language: python
python:
- 2.7
- 3.5
- 3.6

env:
global:
Expand All @@ -23,6 +22,10 @@ matrix:
- python: 3.6
env: ASTROPY_VERSION=development MAIN_CMD='pytest --cdbs pysynphot'

# Coverage
- python: 3.6
env: PIP_DEPENDENCIES='coveralls' CONDA_DEPENDENCIES='pytest-cov coverage requests' MAIN_CMD='pytest --cov-report= --cov=pysynphot --cdbs pysynphot'

install:
# We now use the ci-helpers package to set up our testing environment.
# This is done by using Miniconda and then using conda and pip to install
Expand All @@ -49,3 +52,6 @@ install:

script:
- $MAIN_CMD

after_success:
- if [[ $MAIN_CMD == *cov-report* ]]; then coveralls; fi

0 comments on commit 8a43eab

Please sign in to comment.