forked from quodlibet/mutagen
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
75 lines (73 loc) · 2.86 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
64
65
66
67
68
69
70
71
72
73
74
75
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: trusty
language: python
python: "nightly"
env: TYPE="linux" PYVER="nightly" PYARGS="-R -bb"
- os: linux
dist: trusty
language: python
python: "pypy-5.4.1"
env: TYPE="linux" PYVER="pypy" PYARGS="-R"
- os: linux
dist: trusty
language: python
python: "pypy3.3-5.5-alpha"
env: TYPE="linux" PYVER="pypy3" PYARGS="-R -bb"
- os: linux
language: generic
sudo: required
dist: trusty
env: TYPE="windows" PYVER="2.7.11" PYARGS="-R"
- os: linux
language: generic
sudo: required
dist: trusty
env: TYPE="windows" PYVER="3.4.4" 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" == "windows" ]; then sudo dpkg --add-architecture i386; fi
- if [ "$TYPE" == "windows" ]; then sudo add-apt-repository -y ppa:ubuntu-wine/ppa; fi
- if [ "$TYPE" == "windows" ]; then travis_retry sudo apt-get update -q; fi
- if [ "$TYPE" == "windows" ]; then travis_retry sudo apt-get install --no-install-recommends -y wine1.8 xvfb; fi
- if [ "$TYPE" == "osx" ]; then brew update; fi
- if [ "$TYPE" == "osx" ] && [ "$PYVER" == "3" ]; then brew install python3; 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; 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
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" == "windows" ]; then eval xvfb-run -a ./run_wine.sh "$PYVER" python $PYARGS setup.py test; fi