Skip to content

Commit

Permalink
Merge pull request #4 from satellogic/add_travis_ci
Browse files Browse the repository at this point in the history
Add travis ci
  • Loading branch information
gilgamezh authored Nov 9, 2017
2 parents 25c2e14 + 425aea3 commit 28dba2a
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .flake8
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[flake8]
max-line-length=99
exclude=.git
select=E,W,F,C,N
ignore=
25 changes: 25 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
language: python

python:
- "3.4"
- "3.5"
- "3.5-dev"
- "3.6"
- "3.6-dev"
- "nightly" # currently points to 3.7-dev
install:
- "pip install --editable .[dev]"
- "pip install -r requirements-test.txt"
- "pip install python-coveralls"
script:
- "pytest -v --cov-report= --cov=quaternions tests/"
after_script:
- "flake8 quaternions"

# report coverage to coveralls.io
after_success:
- coveralls

cache:
apt: true
pip: true
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
Quaternions library
===================

[![Coverage Status](https://coveralls.io/repos/github/satellogic/quaternions/badge.svg)](https://coveralls.io/github/satellogic/quaternions)
[![Build Status](https://travis-ci.org/satellogic/quaternions.svg?branch=add_travis_ci)](https://travis-ci.org/satellogic/quaternions)

This is a library for dealing with quaternions in python in a unified way.

To install it:
Expand Down
4 changes: 4 additions & 0 deletions requirements-test.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
hypothesis
pytest
pytest-coverage
flake8>=2.5.4
1 change: 0 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
numpy
hypothesis

0 comments on commit 28dba2a

Please sign in to comment.