Skip to content

Commit 29e4eb8

Browse files
authored
Merge pull request h2non#88 from dosas/feature/update-ci
Update CI
2 parents 81848be + 6191bc2 commit 29e4eb8

File tree

3 files changed

+44
-202
lines changed

3 files changed

+44
-202
lines changed

.gitignore

Lines changed: 7 additions & 186 deletions
Original file line numberDiff line numberDiff line change
@@ -1,205 +1,26 @@
1-
# https://raw.githubusercontent.com/github/gitignore/master/Global/Archives.gitignore
2-
3-
# It's better to unpack these files and commit the raw source because
4-
# git has its own built in compression methods.
5-
*.7z
6-
*.jar
7-
*.rar
8-
*.zip
9-
*.gz
10-
*.tgz
11-
*.bzip
12-
*.bz2
13-
*.xz
14-
*.lzma
15-
*.cab
16-
17-
# Packing-only formats
18-
*.iso
19-
*.tar
20-
21-
# Package management formats
22-
*.dmg
23-
*.xpi
24-
*.gem
25-
*.egg
26-
*.deb
27-
*.rpm
28-
*.msi
29-
*.msm
30-
*.msp
31-
32-
33-
# https://raw.githubusercontent.com/github/gitignore/master/Global/Linux.gitignore
34-
35-
*~
36-
37-
# Temporary files which can be created if a process still has a handle open of a deleted file
38-
.fuse_hidden*
39-
40-
# KDE directory preferences
41-
.directory
42-
43-
# Linux trash folder which might appear on any partition or disk
44-
.Trash-*
45-
46-
# .nfs files are created when an open file is removed but is still being accessed
47-
.nfs*
48-
49-
50-
# https://raw.githubusercontent.com/github/gitignore/master/Global/Windows.gitignore
51-
52-
# Windows thumbnail cache files
53-
Thumbs.db
54-
ehthumbs.db
55-
ehthumbs_vista.db
56-
57-
# Dump file
58-
*.stackdump
59-
60-
# Folder config file
61-
Desktop.ini
62-
63-
# Recycle Bin used on file shares
64-
$RECYCLE.BIN/
65-
66-
# Windows Installer files
67-
*.cab
68-
*.msi
69-
*.msm
70-
*.msp
71-
72-
# Windows shortcuts
73-
*.lnk
74-
75-
76-
# https://raw.githubusercontent.com/github/gitignore/master/Global/macOS.gitignore
77-
78-
*.DS_Store
79-
.AppleDouble
80-
.LSOverride
81-
82-
# Icon must end with two \r
83-
Icon
84-
85-
# Thumbnails
86-
._*
87-
88-
# Files that might appear in the root of a volume
89-
.DocumentRevisions-V100
90-
.fseventsd
91-
.Spotlight-V100
92-
.TemporaryItems
93-
.Trashes
94-
.VolumeIcon.icns
95-
.com.apple.timemachine.donotpresent
96-
97-
# Directories potentially created on remote AFP share
98-
.AppleDB
99-
.AppleDesktop
100-
Network Trash Folder
101-
Temporary Items
102-
.apdisk
103-
104-
105-
# https://raw.githubusercontent.com/github/gitignore/master/Python.gitignore
106-
1071
# Byte-compiled / optimized / DLL files
1082
__pycache__/
1093
*.py[cod]
1104
*$py.class
1115

112-
# C extensions
113-
*.so
6+
# Unit test / coverage reports
7+
htmlcov/
8+
.tox/
9+
.coverage
10+
.coverage.*
11+
.cache
11412

11513
# Distribution / packaging
11614
.Python
11715
build/
11816
develop-eggs/
11917
dist/
120-
downloads/
12118
eggs/
12219
.eggs/
123-
lib/
124-
lib64/
125-
parts/
12620
sdist/
12721
var/
12822
wheels/
12923
*.egg-info/
13024
.installed.cfg
13125
*.egg
132-
133-
# PyInstaller
134-
# Usually these files are written by a python script from a template
135-
# before PyInstaller builds the exe, so as to inject date/other infos into it.
136-
*.manifest
137-
*.spec
138-
139-
# Installer logs
140-
pip-log.txt
141-
pip-delete-this-directory.txt
142-
143-
# Unit test / coverage reports
144-
htmlcov/
145-
.tox/
146-
.coverage
147-
.coverage.*
148-
.cache
149-
nosetests.xml
150-
coverage.xml
151-
*.cover
152-
.hypothesis/
153-
154-
# Translations
155-
*.mo
156-
*.pot
157-
158-
# Django stuff:
159-
*.log
160-
local_settings.py
161-
162-
# Flask stuff:
163-
instance/
164-
.webassets-cache
165-
166-
# Scrapy stuff:
167-
.scrapy
168-
169-
# Sphinx documentation
170-
docs/_build/
171-
172-
# PyBuilder
173-
target/
174-
175-
# Jupyter Notebook
176-
.ipynb_checkpoints
177-
178-
# pyenv
179-
.python-version
180-
181-
# celery beat schedule file
182-
celerybeat-schedule
183-
184-
# SageMath parsed files
185-
*.sage.py
186-
187-
# Environments
188-
.env
189-
.venv
190-
env/
191-
venv/
192-
ENV/
193-
194-
# Spyder project settings
195-
.spyderproject
196-
.spyproject
197-
198-
# Rope project settings
199-
.ropeproject
200-
201-
# mkdocs documentation
202-
/site
203-
204-
# mypy
205-
.mypy_cache/
26+
docs/

.travis.yml

Lines changed: 18 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,27 @@ language: python
22

33
dist: xenial
44

5-
python:
6-
- 2.7
7-
- 3.5
8-
- 3.6
9-
- 3.7
10-
- 3.8
5+
jobs:
6+
include:
7+
- python: 2.7
8+
env: TOXENV=py27
9+
- python: 3.5
10+
env: TOXENV=py35
11+
- python: 3.6
12+
env: TOXENV=py36
13+
- python: 3.7
14+
env: TOXENV=py37
15+
- python: 3.8
16+
env: TOXENV=py3
17+
- python: 3.9
18+
env: TOXENV=py39
19+
- env: TOXENV=lint
1120

1221
install:
13-
- pip install coveralls
14-
- pip install -r requirements-dev.txt
22+
- pip install tox coveralls
1523

1624
script:
17-
- make lint
18-
- make test
25+
- tox
1926

2027
after_success:
21-
coveralls
28+
coveralls

tox.ini

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,26 @@
44
# and then run "tox" from this directory.
55

66
[tox]
7-
envlist = py27, py35, py36, py37, py38
7+
envlist = py{27,35,36,37,38,39}, lint, doc, clean
88
skip_missing_interpreters = true
99

1010
[testenv]
11-
commands =
12-
pip install -q -r requirements-dev.txt
13-
make test
11+
commands = python -m unittest discover
1412

15-
whitelist_externals = make
13+
[testenv:lint]
14+
basepython = python3
15+
deps =
16+
flake8
17+
commands = flake8 {toxinidir}
18+
19+
[testenv:doc]
20+
basepython = python3
21+
deps =
22+
pdoc
23+
commands = pdoc --html --overwrite --all-submodules --html-dir docs filetype
24+
25+
[testenv:clean]
26+
basepython = python3
27+
deps =
28+
pyclean
29+
commands = py3clean {toxinidir}

0 commit comments

Comments
 (0)