forked from DakaraProject/dakara-player
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.appveyor.yml
67 lines (52 loc) · 1.7 KB
/
.appveyor.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
version: 1.6.0-dev-{build}
build: false
# restrict to branches
branches:
only:
- develop
- master
# enable cache for Python dependencies
cache:
- "%LOCALAPPDATA%\\pip\\Cache"
environment:
# setup special environment variable for Appveyor CI test environment
# it is used to disable some tests that can be harmful in this context
APPVEYOR_CI_ENV: 1
# setup tests matrix
matrix:
- PYTHON: "C:\\Python35-x64"
PYTHON_VERSION: "3.5"
PYTHON_ARCH: "64"
- PYTHON: "C:\\Python36-x64"
PYTHON_VERSION: "3.6"
PYTHON_ARCH: "64"
# check current python version
init:
- "py -%PYTHON_VERSION% --version"
# command to install system and python dependencies
install:
# install system dependencies
- "cinst vlc"
# the features used in setup.cfg require at decent version of setuptools
- "py -%PYTHON_VERSION% -m pip install --upgrade \"setuptools>=40.0\""
# install dependencies for test
- "py -%PYTHON_VERSION% -m pip install -e \".[tests]\""
# command to run tests
test_script:
# run tests
- "py -%PYTHON_VERSION% -m coverage run setup.py test"
# run commands
- "py -%PYTHON_VERSION% -m dakara_player_vlc --version"
- "%PYTHON%\\Scripts\\dakara-play-vlc.exe --version"
# run code formatting tests
- "if NOT %PYTHON_VERSION% == 3.5 (py -%PYTHON_VERSION% -m black . --check)"
- "py -%PYTHON_VERSION% -m flake8"
# commands to manage tests results
after_test:
# show coverage stats
- "py -%PYTHON_VERSION% -m coverage report -m"
# upload coverage stats to codecov.io
# coverage must be called manually
# codecov token is stored in appveyor settings
- "py -%PYTHON_VERSION% -m coverage xml"
- "py -%PYTHON_VERSION% -m codecov -X gcov --file coverage.xml"