forked from quodlibet/mutagen
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
63 lines (61 loc) · 2.42 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
52
53
54
55
56
57
58
59
60
61
62
63
matrix:
include:
- os: linux
dist: trusty
language: python
python: "2.7"
env: TYPE="linux" PYVER="2.7" PYARGS="-R"
- os: linux
dist: trusty
language: python
python: "3.4"
env: TYPE="linux" PYVER="3.4" PYARGS="-R -bb"
- os: linux
dist: trusty
language: python
python: "3.5"
env: TYPE="linux" PYVER="3.5" PYARGS="-R -bb"
- os: linux
dist: trusty
language: python
python: "3.6"
env: TYPE="linux" PYVER="3.6" PYARGS="-R -bb"
- os: linux
dist: xenial
sudo: required
language: python
python: "3.7"
env: TYPE="linux" PYVER="3.7" PYARGS="-R -bb"
- os: linux
dist: trusty
language: python
python: "pypy"
env: TYPE="linux" PYVER="pypy" PYARGS="-R"
- os: linux
dist: trusty
language: python
python: "pypy3"
env: TYPE="linux" PYVER="pypy3" PYARGS="-R -bb"
- os: osx
osx_image: xcode6.4
language: generic
env: TYPE="osx" PYVER="3" PYARGS="-R -bb"
- os: osx
osx_image: xcode6.4
language: generic
env: TYPE="osx" PYVER="2" PYARGS="-R"
install:
- if [ "$TYPE" == "osx" ]; then brew update; fi
- if [ "$TYPE" == "osx" ] && [ "$PYVER" == "3" ]; then brew install python || brew upgrade python; fi
- if [ "$TYPE" == "osx" ] && [ "$PYVER" == "3" ]; then python3 -m pip install virtualenv; fi
- if [ "$TYPE" == "osx" ] && [ "$PYVER" == "3" ]; then virtualenv venv -p python3; fi
- if [ "$TYPE" == "osx" ] && [ "$PYVER" == "2" ]; then brew install python@2 || brew upgrade python@2; fi
- if [ "$TYPE" == "osx" ] && [ "$PYVER" == "2" ]; then python2 -m pip install virtualenv; fi
- if [ "$TYPE" == "osx" ] && [ "$PYVER" == "2" ]; then virtualenv venv -p python2; fi
- if [ "$TYPE" == "osx" ]; then source venv/bin/activate; fi
- if [ "$TYPE" == "linux" ] || [ "$TYPE" == "osx" ]; then python -m pip install --upgrade pycodestyle pyflakes pytest hypothesis coverage codecov; fi
- if [ "$TYPE" == "linux" ] || [ "$PYVER" == "3.6" ]; then python -m pip install --upgrade sphinx sphinx_rtd_theme; fi
script:
- if [ "$TYPE" == "linux" ] || [ "$TYPE" == "osx" ]; then eval python $PYARGS -m coverage run --branch setup.py test; fi
- if [ "$TYPE" == "linux" ] || [ "$TYPE" == "osx" ]; then python -m codecov; fi
- if [ "$TYPE" == "linux" ] || [ "$PYVER" == "3.6" ]; then python -m sphinx -W -a -E -b html -n docs docs/_build; fi