Skip to content

Commit

Permalink
Add our own kodiutils library (#174)
Browse files Browse the repository at this point in the history
* Add our own kodiutils library

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

* Add translate_path() function

* Simplify HTTP requests
  • Loading branch information
dagwieers authored Sep 17, 2019
1 parent ea25ede commit 198c5de
Show file tree
Hide file tree
Showing 19 changed files with 397 additions and 267 deletions.
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ 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

after_success:
Expand Down
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 198c5de

Please sign in to comment.