Skip to content

Commit

Permalink
Add coverage to inv test; Use Travis container infrastructure
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewrankin committed Aug 20, 2015
1 parent 210766e commit 4dbe8c1
Show file tree
Hide file tree
Showing 8 changed files with 37 additions and 19 deletions.
5 changes: 5 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
sudo: false
language: python
os:
- linux
Expand All @@ -7,6 +8,10 @@ python:
- '2.7'
- '3.3'
- '3.4'
addons:
apt:
packages:
- pandoc
install:
- pip install -r requirements.txt
- pip install coveralls
Expand Down
4 changes: 2 additions & 2 deletions AUTHORS.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# AUTHORS.md

This file lists the author, maintainers, and contirbutors for the
This file lists the authors, maintainers, and contributors for the
[sdfascii][] project.

## Author
## Authors
- Matthew Rankin

## Maintainers
Expand Down
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,16 @@ This file contains all notable changes to the [sdfascii][] project.

## develop (unreleased)

## v0.3.0 - 2015-08-20

### Added
- Invoke `inv test` task now checks for test coverage.

### Changed
- Migrated from Travis legacy to container-based infrastructure.
- Updated numpy from 1.8.1 to 1.9.2.
- Updated other pip requirements.

## v0.2.3 - 2014-08-08

### Enhancements
Expand Down
2 changes: 1 addition & 1 deletion LICENSE.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright (c) 2013 The sdfascii developers (see AUTHORS.txt file)
Copyright (c) 2013 The sdfascii developers (see AUTHORS.md file)

Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ files as either SDF or ASCII format.

## HP/Agilent SDF Binary Format

The "Standard Data Format Utilities User's Guide" version B.02.01,
manufacturing part number num 5963-1715 ([link to PDF][sdf guide]), was
used to determine the SDF file format.
The ["Standard Data Format Utilities User's Guide"][sdf guide] version
B.02.01, P/N 5963-1715 was used to determine the SDF file format while
developing [sdfascii][].

## HP/Agilent DSA ASCII Format

Expand Down
17 changes: 10 additions & 7 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
flake8==2.2.2
invoke==0.8.2
mccabe==0.2.1
nose==1.3.3
numpy==1.8.1
coverage==3.7.1
flake8==2.4.1
invoke==0.10.1
mccabe==0.3.1
nose==1.3.7
numpy==1.9.2
pep8==1.5.7
pep8-naming==0.3.3
pyflakes==0.8.1
pypandoc==0.8.2
six==1.7.3
pypandoc==1.0.1
six==1.9.0
wheel==0.24.0
2 changes: 1 addition & 1 deletion sdfascii.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

import six

__version__ = '0.2.3'
__version__ = '0.3.0'


def _strip_nonprintable(input_bytes):
Expand Down
10 changes: 5 additions & 5 deletions tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def lint():
@task(lint)
def test():
"""Lint, unit test, and check setup.py"""
run("nosetests")
run("nosetests --with-coverage --cover-package=sdfascii")
run("python setup.py check")


Expand All @@ -33,11 +33,11 @@ def release(deploy=False, test=False, version=''):
run("git push origin --tags")
run("python setup.py register sdist upload")
else:
print("* Have you updated the version in taffmat.py?")
print("* Have you updated CHANGES.md?")
print("* Have you updated the version?")
print("* Have you updated CHANGELOG.md?")
print("* Have you fixed any last minute bugs?")
print("If you answered yes to all of the above questions,")
print("then run `invoke release --deploy -vX.YY` to:")
print("then run `invoke release --deploy -vX.YY.ZZ` to:")
print("- Checkout master")
print("- Tag the git release with provided vX.YY version")
print("- Tag the git release with provided vX.YY.ZZ version")
print("- Push the master branch and tags to repo")

0 comments on commit 4dbe8c1

Please sign in to comment.