forked from quodlibet/quodlibet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
42 lines (40 loc) · 1.99 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
matrix:
allow_failures:
- python: "3.4_with_system_site_packages"
include:
- os: linux
sudo: required
dist: trusty
language: python
python: "2.7_with_system_site_packages"
env: TYPE="linux" PYTHON="python2" APT_PACKAGES="quodlibet exfalso xvfb python-faulthandler"
- os: linux
sudo: required
dist: trusty
language: python
python: "3.4_with_system_site_packages"
env: TYPE="linux" PYTHON="python3" APT_PACKAGES="quodlibet exfalso xvfb python3-mutagen python3-gi python3-gi-cairo python3-requests"
- os: osx
language: generic
env: TYPE="osx" APT_PACKAGES=""
- os: linux
language: generic
sudo: required
dist: trusty
env: TYPE="windows" APT_PACKAGES="wine xvfb"
install:
- if [ "$APT_PACKAGES" != "" ]; then sudo dpkg --add-architecture i386; fi
- if [ "$APT_PACKAGES" != "" ]; then travis_retry sudo add-apt-repository -y ppa:lazka/dumpingplace; fi
- if [ "$APT_PACKAGES" != "" ]; then sudo apt-get update -q || true; fi
- if [ "$APT_PACKAGES" != "" ]; then travis_retry sudo apt-get install -y $(echo $APT_PACKAGES); fi
- if [ "$TYPE" == "linux" ]; then travis_retry pip install --upgrade pep8 pyflakes; fi
- if [ "$TYPE" == "osx" ]; then travis_retry wget https://bitbucket.org/lazka/quodlibet/downloads/QuodLibet-3.7.-1.dmg; fi
- if [ "$TYPE" == "osx" ]; then hdiutil attach -readonly -mountpoint _mount QuodLibet-3.7.-1.dmg; fi
- if [ "$TYPE" == "windows" ]; then travis_retry wget https://bitbucket.org/lazka/quodlibet/downloads/quodlibet-3.7-win-sdk.tar.xz; fi
- if [ "$TYPE" == "windows" ]; then tar -xJf quodlibet-3.7-win-sdk.tar.xz; fi
script:
- cd quodlibet
- if [ "$TYPE" == "linux" ]; then xvfb-run -a $PYTHON ./setup.py test; fi
- if [ "$TYPE" == "linux" ]; then xvfb-run -a $PYTHON ./setup.py quality; fi
- if [ "$TYPE" == "osx" ]; then ../_mount/QuodLibet.app/Contents/MacOS/run setup.py test; fi
- if [ "$TYPE" == "windows" ]; then xvfb-run -a ../_sdk/test_ci.sh ./setup.py test; fi