Skip to content

Commit

Permalink
Add our own kodiutils library
Browse files Browse the repository at this point in the history
This PR includes:
- Introduce a kodiutils library
- Import some library to blocks where they are needed
- Import only the stuff we need from libraries
- Add proxy-support testing
  • Loading branch information
dagwieers committed Sep 17, 2019
1 parent ea25ede commit a9af351
Show file tree
Hide file tree
Showing 19 changed files with 389 additions and 264 deletions.
4 changes: 3 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,10 @@ script:
- pylint lib/ test/
#- kodi-addon-checker . --branch=krypton
#- kodi-addon-checker . --branch=leia
- coverage run default.py
- coverage run -a default.py
- proxy.py &
- coverage run -m unittest discover
- pkill -ef proxy.py

after_success:
- codecov
11 changes: 8 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ zip_dir = $(name)/

blue = \e[1;34m
white = \e[1;37m
reset = \e[0m
reset = \e[0;39m

.PHONY: test

Expand All @@ -43,9 +43,14 @@ addon: clean

unit: clean
@echo -e "$(white)=$(blue) Starting unit tests$(reset)"
python default.py
-pkill -ef proxy.py
proxy.py &
python -m unittest discover
# coverage run -m unittest discover
pkill -ef proxy.py

run:
@echo -e "$(white)=$(blue) Run CLI$(reset)"
python default.py

zip: clean
@echo -e "$(white)=$(blue) Building new package$(reset)"
Expand Down
Loading

0 comments on commit a9af351

Please sign in to comment.