-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Kotaro Tanahashi
committed
Sep 21, 2018
0 parents
commit 8f9612e
Showing
53 changed files
with
4,572 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,107 @@ | ||
version: 2 | ||
jobs: | ||
test-2.7: &test-template | ||
docker: | ||
- image: circleci/python:2.7-jessie | ||
|
||
working_directory: ~/repo | ||
|
||
steps: | ||
- checkout | ||
|
||
- run: | ||
name: create virtualenv | ||
command: | | ||
python -m virtualenv env | ||
- run: | ||
name: install python dependencies | ||
command: | | ||
. env/bin/activate | ||
python --version | ||
pip install -r requirements.txt | ||
- run: | ||
name: run unittests | ||
command: | | ||
. env/bin/activate | ||
python --version | ||
coverage run -m unittest discover | ||
- run: | ||
name: codecov | ||
command: | | ||
. env/bin/activate | ||
# todo: uncomment below when the repository becomes public | ||
#codecov | ||
test-3.4: | ||
<<: *test-template | ||
docker: | ||
- image: circleci/python:3.4-jessie | ||
|
||
test-3.5: | ||
<<: *test-template | ||
docker: | ||
- image: circleci/python:3.5-jessie | ||
|
||
test-3.6: | ||
<<: *test-template | ||
docker: | ||
- image: circleci/python:3.6-jessie | ||
|
||
test-3.7: | ||
<<: *test-template | ||
docker: | ||
- image: circleci/python:3.7-stretch | ||
|
||
test-doc: | ||
docker: | ||
- image: circleci/python:3.6-jessie | ||
|
||
working_directory: ~/repo | ||
|
||
steps: | ||
- run: | ||
name: install graphviz and pandoc | ||
command: | | ||
sudo apt-get install graphviz | ||
sudo apt-get install pandoc | ||
- checkout | ||
|
||
- run: | ||
name: create virtualenv | ||
command: | | ||
python -m virtualenv env | ||
- run: | ||
name: install sphinx and dependencies | ||
command: | | ||
. env/bin/activate | ||
pip install -r requirements.txt | ||
pip install sphinx | ||
pip install sphinx_rtd_theme | ||
- run: | ||
name: test doc build | ||
command: | | ||
. env/bin/activate | ||
sphinx-build -W -b html docs docs/_build/html | ||
- run: | ||
name: run doctest | ||
command: | | ||
. env/bin/activate | ||
make doctest | ||
workflows: | ||
version: 2 | ||
tests: | ||
jobs: | ||
- test-2.7 | ||
- test-3.4 | ||
- test-3.5 | ||
- test-3.6 | ||
- test-3.7 | ||
- test-doc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
[run] | ||
# omit virtualenv | ||
omit = venv/* | ||
source=pyqubo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,126 @@ | ||
# PyCharm | ||
.idea/ | ||
|
||
### macOS ### | ||
# General | ||
.DS_Store | ||
.AppleDouble | ||
.LSOverride | ||
|
||
# Icon must end with two \r | ||
Icon | ||
|
||
# Thumbnails | ||
._* | ||
|
||
# Files that might appear in the root of a volume | ||
.DocumentRevisions-V100 | ||
.fseventsd | ||
.Spotlight-V100 | ||
.TemporaryItems | ||
.Trashes | ||
.VolumeIcon.icns | ||
.com.apple.timemachine.donotpresent | ||
|
||
# Directories potentially created on remote AFP share | ||
.AppleDB | ||
.AppleDesktop | ||
Network Trash Folder | ||
Temporary Items | ||
.apdisk | ||
|
||
### Python ### | ||
# Byte-compiled / optimized / DLL files | ||
__pycache__/ | ||
*.py[cod] | ||
*$py.class | ||
|
||
# C extensions | ||
*.so | ||
|
||
# Distribution / packaging | ||
.Python | ||
build/ | ||
develop-eggs/ | ||
dist/ | ||
downloads/ | ||
eggs/ | ||
.eggs/ | ||
lib/ | ||
lib64/ | ||
parts/ | ||
sdist/ | ||
var/ | ||
wheels/ | ||
*.egg-info/ | ||
.installed.cfg | ||
*.egg | ||
MANIFEST | ||
|
||
# PyInstaller | ||
# Usually these files are written by a python script from a template | ||
# before PyInstaller builds the exe, so as to inject date/other infos into it. | ||
*.manifest | ||
*.spec | ||
|
||
# Installer logs | ||
pip-log.txt | ||
pip-delete-this-directory.txt | ||
|
||
# Unit test / coverage reports | ||
htmlcov/ | ||
.tox/ | ||
.coverage | ||
.coverage.* | ||
.cache | ||
nosetests.xml | ||
coverage.xml | ||
*.cover | ||
.hypothesis/ | ||
.pytest_cache/ | ||
|
||
# Scrapy stuff: | ||
.scrapy | ||
|
||
# Sphinx documentation | ||
docs/_build/ | ||
docs/.doctrees/ | ||
|
||
# Jupyter Notebook | ||
.ipynb_checkpoints | ||
|
||
# IPython | ||
profile_default/ | ||
ipython_config.py | ||
|
||
# pyenv | ||
.python-version | ||
|
||
# SageMath parsed files | ||
*.sage.py | ||
|
||
# Environments | ||
.env | ||
.venv | ||
env/ | ||
venv/ | ||
ENV/ | ||
env.bak/ | ||
venv.bak/ | ||
|
||
# Spyder project settings | ||
.spyderproject | ||
.spyproject | ||
|
||
|
||
### Python.VirtualEnv Stack ### | ||
# Virtualenv | ||
# http://iamzed.com/2009/05/07/a-primer-on-virtualenv/ | ||
[Bb]in | ||
[Ii]nclude | ||
[Ll]ib | ||
[Ll]ib64 | ||
[Ll]ocal | ||
[Ss]cripts | ||
pyvenv.cfg | ||
pip-selfcheck.json |
Oops, something went wrong.