forked from DakaraProject/dakara-player
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
51 lines (40 loc) · 1.09 KB
/
.travis.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
language: python
python:
- "3.5"
- "3.6"
# enable cache for Python dependencies
cache: pip
# restrict to branches
branches:
only:
- master
- develop
# command to install system dependencies
before_install:
- sudo apt-get -qq update
- sudo apt-get install -y vlc
# command to install python dependencies
install:
# the features used in setup.cfg require at decent version of setuptools
- python -m pip install --upgrade "setuptools>=40.0"
# install dependencies for test
- python -m pip install -e ".[tests]"
# install module for execution tests
- python setup.py install
# command to run tests
script:
# run tests
- python -m coverage run setup.py test
# run commands
- python -m dakara_player_vlc --version
- dakara-play-vlc --version
# run code formatting tests
- if [[ $TRAVIS_PYTHON_VERSION != 3.5 ]]; then black . --check; fi
- flake8
# commands to manage tests results
after_script:
# show coverage stats
- python -m coverage report -m
# upload coverage stats to codecov.io
# codecov token is stored in travis settings
- python -m codecov -X gcov