Skip to content

Moves code and tests into directories #5

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions .codeclimate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
engines:
fixme:
enabled: true
pep8:
enabled: true
radon:
enabled: true
ratings:
paths:
- "**.py"
exclude_paths:
- tests/**/*
11 changes: 11 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
sudo: false
notifications:
email: false
language: python
env:
- TOX_ENV=py27
- TOX_ENV=coveralls
install:
- pip install tox
script:
- tox -e $TOX_ENV
9 changes: 7 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
### G A L A X Y
[![All Contributors](https://img.shields.io/badge/all_contributors-2-orange.svg?style=flat-square)](#contributors)
[![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) [![All Contributors](https://img.shields.io/badge/all_contributors-2-orange.svg?style=flat-square)](#contributors)

We are attempting to rebuild a computer game from the 80s, Galaxy, in Python.

More information about this project is at [http://matt-bernhardt.github.io/galaxy/](http://matt-bernhardt.github.io/galaxy/).

[The original game is preserved at the Internet Archive](https://archive.org/details/a2_Galaxy_1981_Avalon_Hill)

## Contributors

Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):
Expand All @@ -12,4 +17,4 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d

<!-- ALL-CONTRIBUTORS-LIST:END -->

This project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!
This project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
27 changes: 27 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
[tox]
envlist = py27,clean,coverage
skipsdist = True

[testenv]
commands = py.test {posargs:--tb=short}
deps =
unittest

[testenv:clean]
commands = coverage erase
deps = coverage

[testenv:coverage]
deps =
pytest-cov
{[testenv]deps}
commands = unittest --cov=galaxy {posargs}

[testenv:coveralls]
passenv = TRAVIS TRAVIS_JOB_ID TRAVIS_BRANCH
deps =
coveralls
{[testenv:coverage]deps}
commands =
unittest --cov=galaxy
coveralls