forked from metabrainz/picard
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
46 lines (44 loc) · 1.32 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
os: linux
dist: trusty
language: python
python:
- "3.5"
- "3.6"
cache:
- apt
- pip
env:
global:
- PIP_INSTALL="pip install"
- DISCID="$PIP_INSTALL discid" MUTAGEN="$PIP_INSTALL mutagen>=1.37"
- BABEL="$PIP_INSTALL babel"
matrix:
- PYQT="$PIP_INSTALL pyqt5==5.7.1"
- PYQT="$PIP_INSTALL pyqt5==5.8"
- PYQT="$PIP_INSTALL pyqt5==5.8.1.1"
- PYQT="$PIP_INSTALL pyqt5==5.8.2"
before_install:
- sudo apt-get update -qq && sudo apt-get install -qq transifex-client libdiscid0 libdiscid0-dev qt5-default
- $BABEL
- $PYQT
- $MUTAGEN
- $DISCID
- touch ~/.transifexrc
- printf "[https://www.transifex.com]\nhostname = https://www.transifex.com\npassword = $TX_PASSWORD\ntoken =\nusername = $TX_USERNAME" > ~/.transifexrc
install:
# Set up Picard
- python setup.py clean
- python setup.py clean_ui
- python setup.py build_ui
- python setup.py build_ext -i
- python setup.py regen_pot_file
- 'if [ ! -z "${TX_PASSWORD}" ]; then python setup.py get_po_files; fi'
- 'if [ ! -z "${TX_PASSWORD}" ]; then python setup.py update_constants; fi'
- python setup.py build_locales -i
- python setup.py patch_version --platform=test
- python setup.py install
# Run the tests!
script: "python setup.py test -v"
# Tell people that tests were run
notifications:
irc: "chat.freenode.net#metabrainz"