ci/ci_windows.ps1
raw| 1 | function Dependencies { |
| 2 | python -m pip install --requirement devrequirements.txt |
| 3 | python -m pip install . |
| 4 | echo Plyer version is |
| 5 | python -c "import plyer;print(plyer.__version__)" |
| 6 | } |
| 7 | |
| 8 | function Tests { |
| 9 | $current_directory = (pwd).Path |
| 10 | |
| 11 | python -m coverage run ` |
| 12 | --source "$current_directory\plyer" ` |
| 13 | -m unittest discover ` |
| 14 | --start-directory "$current_directory\plyer\tests" ` |
| 15 | --top-level-directory "$current_directory" ` |
| 16 | --failfast |
| 17 | |
| 18 | python -m coverage report -m |
| 19 | } |