Skip to content
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

Split application configuration into separate modules and add tests #23

Merged
merged 21 commits into from
Jul 2, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
c1b165b
move command line argument parsing into separate file; move logging i…
andrewwhitehead Jun 27, 2019
bc68ed8
move context setup into a separate include; add unit tests; related c…
andrewwhitehead Jun 27, 2019
a190813
only ignore missing doctring in __init__.py files
andrewwhitehead Jun 27, 2019
d1bde04
add basic argument parser test
andrewwhitehead Jun 28, 2019
268e237
test print_banner method
andrewwhitehead Jun 28, 2019
3bd4445
add dispatcher tests
andrewwhitehead Jun 28, 2019
1081dc4
test admin server startup in conductor
andrewwhitehead Jun 28, 2019
cba9aba
add unit tests for default context builder
andrewwhitehead Jun 28, 2019
597df9e
fix indy tests
andrewwhitehead Jun 28, 2019
836ff05
fix flake warning
andrewwhitehead Jun 28, 2019
be68437
skip mkdir if directory exists
andrewwhitehead Jun 28, 2019
d5eb1d8
simpler package caching method
andrewwhitehead Jun 28, 2019
8d13535
reset cache
andrewwhitehead Jun 28, 2019
8d610d8
specify coverage directory
andrewwhitehead Jun 28, 2019
e9d618a
move test reports
andrewwhitehead Jun 28, 2019
5deb0ac
make run_tests_indy consistent with run_tests
andrewwhitehead Jun 28, 2019
8394153
pass filename to codecov explicitly
andrewwhitehead Jun 28, 2019
202caaf
use absolute path for cached directory
andrewwhitehead Jun 28, 2019
c172532
upload coverage as XML
andrewwhitehead Jun 29, 2019
245b089
fix error reporting when external module fails to load
andrewwhitehead Jun 30, 2019
dcd688e
fix variable reference
andrewwhitehead Jul 1, 2019
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
23 changes: 7 additions & 16 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,48 +7,39 @@ jobs:
- checkout
- restore_cache:
keys:
- v2-pip-dependencies-{{ .Branch }}-{{ checksum "requirements.txt" }}-{{ checksum "requirements.dev.txt" }}
- v2-pip-dependencies-{{ .Branch }}-
- v4-pip-dependencies-{{ .Branch }}-{{ checksum "requirements.txt" }}-{{ checksum "requirements.dev.txt" }}
- v4-pip-dependencies-{{ .Branch }}-
- run:
name: Install Python Dependencies
command: |
python3 -m venv venv
. venv/bin/activate
pip install \
--user \
-r requirements.txt \
-r requirements.dev.txt \
pytest

- save_cache:
paths:
- venv
key: v2-pip-dependencies-{{ .Branch }}-{{ checksum "requirements.txt" }}-{{ checksum "requirements.dev.txt" }}
- /home/indy/.local/lib/python3.6/site-packages
key: v4-pip-dependencies-{{ .Branch }}-{{ checksum "requirements.txt" }}-{{ checksum "requirements.dev.txt" }}

- run:
name: Run Agent Tests
command: |
mkdir test-reports
mkdir .coverage
. venv/bin/activate
[ ! -d test-reports ] && mkdir test-reports
pytest

- run:
name: Push to Codecov.io
command: |
bash <(curl -s https://codecov.io/bash)
bash <(curl -s https://codecov.io/bash) -f test-reports/coverage.xml

- store_test_results:
path: test-reports

- store_test_results:
path: .coverage

- store_artifacts:
path: test-reports

- store_artifacts:
path: .coverage

workflows:
version: 2
aries_cloudagent:
Expand Down
4 changes: 2 additions & 2 deletions .coveragerc
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ omit =
docker/*
docs/*
scripts/*
data_file = .coverage/data
data_file = test-reports/.coverage

[report]
exclude_lines =
pragma: no cover
@abstract

[xml]
output = .coverage/coverage.xml
output = test-reports/coverage.xml
Loading