Skip to content

Commit a7613fb

Browse files
Adds basic Travis, Tox, and CodeClimate integration
1 parent f32d8b6 commit a7613fb

File tree

4 files changed

+58
-1
lines changed

4 files changed

+58
-1
lines changed

.codeclimate.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
engines:
3+
fixme:
4+
enabled: true
5+
pep8:
6+
enabled: true
7+
radon:
8+
enabled: true
9+
ratings:
10+
paths:
11+
- "**.py"
12+
exclude_paths:
13+
- tests/**/*

.travis.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
sudo: false
2+
notifications:
3+
email: false
4+
language: python
5+
env:
6+
- TOX_ENV=py27
7+
- TOX_ENV=coveralls
8+
install:
9+
- pip install tox
10+
script:
11+
- tox -e $TOX_ENV

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
11
### G A L A X Y
22

3-
We are attempting to rebuild a computer game from the 80s, Galaxy, in Python.
3+
[![Build Status](https://travis-ci.org/matt-bernhardt/galaxy.svg)](https://travis-ci.org/matt-bernhardt/galaxy) [![Coverage Status](https://coveralls.io/repos/matt-bernhardt/galaxy/badge.svg?branch=master&service=github)](https://coveralls.io/github/matt-bernhardt/galaxy?branch=master) [![Code Climate](https://codeclimate.com/github/matt-bernhardt/galaxy/badges/gpa.svg)](https://codeclimate.com/github/matt-bernhardt/galaxy)
4+
5+
We are attempting to rebuild a computer game from the 80s, Galaxy, in Python.
6+
7+
More information about this project is at [http://matt-bernhardt.github.io/galaxy/](http://matt-bernhardt.github.io/galaxy/).
8+
9+
[The original game is preserved at the Internet Archive](https://archive.org/details/a2_Galaxy_1981_Avalon_Hill)

tox.ini

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
[tox]
2+
envlist = py27,clean,coverage
3+
skipsdist = True
4+
5+
[testenv]
6+
commands = py.test {posargs:--tb=short}
7+
deps =
8+
unittest
9+
10+
[testenv:clean]
11+
commands = coverage erase
12+
deps = coverage
13+
14+
[testenv:coverage]
15+
deps =
16+
pytest-cov
17+
{[testenv]deps}
18+
commands = unittest --cov=galaxy {posargs}
19+
20+
[testenv:coveralls]
21+
passenv = TRAVIS TRAVIS_JOB_ID TRAVIS_BRANCH
22+
deps =
23+
coveralls
24+
{[testenv:coverage]deps}
25+
commands =
26+
unittest --cov=galaxy
27+
coveralls

0 commit comments

Comments
 (0)