Skip to content

Commit 37be7ae

Browse files
authored
Merge pull request #41 from adambullmer/ci
Added circle CI and coverage detection
2 parents ef6a6ad + 5bf330e commit 37be7ae

File tree

4 files changed

+85
-6
lines changed

4 files changed

+85
-6
lines changed

.circleci/config.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
defaults: &defaults
2+
working_directory: ~/sublime_docblockr_python
3+
docker:
4+
- image: circleci/python:3.4
5+
6+
version: 2
7+
jobs:
8+
test:
9+
<< : *defaults
10+
steps:
11+
- checkout
12+
- run:
13+
name: install pipenv
14+
command: pip install pipenv
15+
- run:
16+
name: install dependencies
17+
command: |
18+
pipenv install
19+
pipenv install --dev
20+
- run:
21+
name: run tests
22+
command: pipenv run tox
23+
- store_artifacts:
24+
path: pytest
25+
- store_test_results:
26+
path: pytest
27+
28+
workflows:
29+
version: 2
30+
test:
31+
jobs:
32+
- test

Pipfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,9 @@ pytest = "*"
1010
pytest-cov = "*"
1111
pytest-sugar = "*"
1212
pydocstyle = "*"
13+
codecov = "*"
1314

1415
[packages]
1516

1617
[requires]
17-
python_version = "3.4.3"
18+
python_version = "3.4"

Pipfile.lock

Lines changed: 48 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tox.ini

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,14 @@ whitelist_externals =
1414
setenv =
1515
PYTHONPATH = {toxinidir}
1616
PIPENV_DOTENV_LOCATION = {toxinidir}/tests/.env
17+
passenv = TOXENV CI CODECOV_TOKEN CODECOV_ENV
1718

1819
[testenv:test]
1920
commands =
2021
rm -rf pytest
2122
mkdir -p pytest/coverage
2223
pipenv run py.test
24+
pipenv run codecov -e TOXENV
2325

2426
[testenv:style]
2527
commands =
@@ -42,6 +44,7 @@ max-complexity = 10
4244
tee = true
4345
count = true
4446
show-statistics = true
47+
show-source = true
4548

4649
[pydocstyle]
4750
match = '(?!test_).*\.py|(?!conftest\.py)'

0 commit comments

Comments
 (0)