Skip to content

Commit

Permalink
Set up travis and coveralls for CI
Browse files Browse the repository at this point in the history
- Set up travis automated builds
- Set up code test coverage tracking
- Update README with badges
- Basic framework of project and tests
  • Loading branch information
Dannnno committed Nov 4, 2015
1 parent 41a92a2 commit 11c8167
Show file tree
Hide file tree
Showing 7 changed files with 43 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[report]
omit =
*/python??/*
*/python?.?/*
*/site-packages/*
*/tests/*
27 changes: 27 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
language: python

matrix:
include:
- python: "2.6"
- python: "2.7"
- python: "3.3"
- python: "3.4"
- python: "3.5"
allow_failures:
- python: "2.6"
- python: "3.3"
- python: "3.4"
- python: "3.5"
fast_finish: true

before_install:
- sudo apt-get update -qq

install:
- pip install -q -r requirements.txt

script:
- nosetests --with-doctest --with-coverage --cover-package=CAOS

after_success:
- coveralls
1 change: 1 addition & 0 deletions CAOS/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"""Start"""
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2015 PyCAOS
Copyright (c) 2015 Dan Obermiller

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# CAOS - Computer Assisted Organic Synthesis (in Python!)

[![Build status](https://travis-ci.org/PyCAOS/CAOS.svg)](https://travis-ci.org/PyCAOS/CAOS)
[![Coverage Status](https://coveralls.io/repos/PyCAOS/CAOS/badge.svg?branch=master&service=github)](https://coveralls.io/github/PyCAOS/CAOS?branch=master)

CAOS is a useful tool for many organic chemists, but is often a hard
one to use in practice. This library will seek to provide an easy
method of predicting reactions.
Expand Down
3 changes: 3 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
coveralls
coverage
nose
2 changes: 2 additions & 0 deletions tests/test_dispatch.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
def test_nothing():
assert True

0 comments on commit 11c8167

Please sign in to comment.