Skip to content

Commit

Permalink
Merge pull request #49 from ninezerozeronine/develop
Browse files Browse the repository at this point in the history
Adding tox and coverage
  • Loading branch information
ninezerozeronine committed May 20, 2019
2 parents b25bc80 + aa6dfe8 commit 41e1d55
Show file tree
Hide file tree
Showing 390 changed files with 112 additions and 43,545 deletions.
12 changes: 8 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
sphinx_docs/_build
docs/_build
*.pyc
src/python/.pytest_cache
src/python/.coverage
src/python/cov_html
build
dist
src/*.egg-info
.tox
.coverage
htmlcov
*__pycache__
12 changes: 12 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
language: python

python:
- "2.7"

install:
- pip install tox-travis
- pip install coverage
- pip install coveralls

script:
- tox -e travis
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2018 Andy Palmer
Copyright (c) 2018-2019 Andy Palmer

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
35 changes: 19 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,44 +1,47 @@
# 8 bit Computer

This is a project to make a basic but fully functional 8 bit computer
using 7400 series ICs.
[![Documentation Status](https://readthedocs.org/projects/eight-bit-computer/badge/?version=master)](https://eight-bit-computer.readthedocs.io/en/master/?badge=master)

The full docs can be found on the GitHub Pages pages for this
project: https://ninezerozeronine.github.io/eight_bit_computer/
[![Coverage Status](https://coveralls.io/repos/github/ninezerozeronine/eight-bit-computer/badge.svg?branch=master)](https://coveralls.io/github/ninezerozeronine/eight-bit-computer?branch=master)

# License
This is a project to make a basic but fully functional 8 bit computer
using 7400 series ICs.

The content of this project itself is licensed under the [Creative Commons Attribution 3.0 license](http://creativecommons.org/licenses/by/3.0/us/deed.en_US),
and any code used is licensed under the [MIT license](http://opensource.org/licenses/mit-license.php).
The full docs can be found on the Read the Docs: https://eight-bit-computer.readthedocs.io/

# Docs

To build the docs on mac run:

sphinx-apidoc --force --separate --no-toc -o software/source/ ../src/python/eight_bit_computer/
make clean
make html

in `sphinx_docs`.
in `docs`.

To build the docs in windows run:

sphinx-apidoc --force --separate --no-toc -o software/source/ ../src/python/eight_bit_computer/
sphinx-build.exe . _build

in `sphinx_docs`.

Then copy `sphinx_docs/_build/html/*` into `docs` so that github pages can see them.
in `docs`.

# Tests

To run the tests, run:

python -B -m pytest
tox -e test

in `src/python`
in the root directory.

To generate a coverage report run:

python -B -m pytest --cov=eight_bit_computer --cov-report=html:cov_html tests
tox -e cov

in the root directory.

# License

The content of this project itself is licensed under the
[Attribution-ShareAlike 4.0 International
license](http://creativecommons.org/licenses/by-sa/4.0/), and any source code used
in conjunction with the project is licensed under the [MIT
license](http://opensource.org/licenses/mit-license.php).
File renamed without changes.
File renamed without changes.
4 changes: 0 additions & 4 deletions docs/.buildinfo

This file was deleted.

Binary file removed docs/.doctrees/credits.doctree
Binary file not shown.
Binary file removed docs/.doctrees/development_tools.doctree
Binary file not shown.
Binary file removed docs/.doctrees/environment.pickle
Binary file not shown.
Binary file removed docs/.doctrees/hardware/debouncing.doctree
Binary file not shown.
Binary file removed docs/.doctrees/hardware/edge_detection.doctree
Binary file not shown.
Binary file removed docs/.doctrees/hardware/eeprom_programmer.doctree
Binary file not shown.
Binary file removed docs/.doctrees/hardware/fanout.doctree
Binary file not shown.
Binary file removed docs/.doctrees/hardware/hct_vs_ls.doctree
Binary file not shown.
Binary file removed docs/.doctrees/hardware/index.doctree
Binary file not shown.
Binary file removed docs/.doctrees/hardware/materials_and_tools.doctree
Binary file not shown.
Binary file removed docs/.doctrees/hardware/open_collector.doctree
Binary file not shown.
Binary file removed docs/.doctrees/hardware/safe_clock_enable.doctree
Binary file not shown.
Binary file removed docs/.doctrees/index.doctree
Binary file not shown.
Binary file removed docs/.doctrees/language/assembly.doctree
Binary file not shown.
Binary file removed docs/.doctrees/language/index.doctree
Binary file not shown.
Binary file removed docs/.doctrees/language/machine_code.doctree
Binary file not shown.
Binary file removed docs/.doctrees/language/micro_code.doctree
Binary file not shown.
Binary file removed docs/.doctrees/modules/alu.doctree
Binary file not shown.
Binary file removed docs/.doctrees/modules/clock.doctree
Binary file not shown.
Binary file removed docs/.doctrees/modules/control_unit.doctree
Binary file not shown.
Binary file removed docs/.doctrees/modules/index.doctree
Binary file not shown.
Binary file removed docs/.doctrees/modules/program_counter.doctree
Binary file not shown.
Binary file removed docs/.doctrees/modules/ram.doctree
Binary file not shown.
Binary file removed docs/.doctrees/modules/register.doctree
Binary file not shown.
Binary file removed docs/.doctrees/modules/two_to_one.doctree
Binary file not shown.
Binary file removed docs/.doctrees/overview.doctree
Binary file not shown.
Binary file removed docs/.doctrees/software/assembler.doctree
Binary file not shown.
Binary file removed docs/.doctrees/software/index.doctree
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed docs/.doctrees/usage.doctree
Binary file not shown.
Empty file removed docs/.nojekyll
Empty file.
File renamed without changes.
257 changes: 0 additions & 257 deletions docs/_downloads/4cd40d388b67c3f0809f4b3bd4d2124f/language_table.csv

This file was deleted.

613 changes: 0 additions & 613 deletions docs/_modules/eight_bit_computer/assembler.html

This file was deleted.

442 changes: 0 additions & 442 deletions docs/_modules/eight_bit_computer/assembly_summary.html

This file was deleted.

463 changes: 0 additions & 463 deletions docs/_modules/eight_bit_computer/assembly_validity.html

This file was deleted.

0 comments on commit 41e1d55

Please sign in to comment.