-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
85 lines (62 loc) · 2.31 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
76
77
78
79
80
81
82
83
84
85
os: linux
language: python
dist: trusty
python:
- 3.5
- 3.6
before_install:
# Add needed repositories
- sudo add-apt-repository ppa:gambas-team/gambas3 -y
- sudo add-apt-repository ppa:mc3man/gstffmpeg-keep -y
- sudo apt-get update -qq
# Install java for Filebot
- sudo apt-get install openjdk-8-jdk
# DBUS fixes for ABC
- sudo apt-get install -y dbus -qq
- export DISPLAY=:0
- eval $(dbus-launch --sh-syntax)
- export DBUS_SESSION_BUS_ADDRESS
- export DBUS_SESSION_BUS_PID
install:
# ABC dependencies
- sudo apt-get install -y ia32* gstreamer0.10* build-essential -qq
- sudo apt-get install -y gambas3 cdrdao flac mkcue cuetools shntool php5-cli vlc gstreamer-tools gstreamer0.10-fluendo-mp3 gpac -qq
# Deluge dependencies
- pip install twisted pyOpenSSL chardet pyxdg
# Music handler dependencies
- pip install requests mutagen beets
- pip install pylast==2.3.0
# Book handler dependencies
- pip install google-api-python-client
# Testing dependencies
- pip install unittest2 responses mock coveralls
before_script:
# Deluge
- git clone git://deluge-torrent.org/deluge.git; cd deluge;
- if [[ $TRAVIS_PYTHON_VERSION == 2.7 ]]; then git checkout -b 1.3-stable origin/1.3-stable; else git checkout develop; fi
- python setup.py clean -a; python setup.py build; python setup.py install; cd
# Filebot
- wget https://emorel.li/dl/FileBot_4.8.2_amd64.deb
- sudo dpkg -i FileBot_4.8.2_amd64.deb;
# NeroACC - ABC dependency
- mkdir aac; cd aac; wget https://emorel.li/dl/NeroAACCodec-1.5.1.zip
- unzip -j NeroAACCodec-1.5.1.zip; cd linux; sudo install -D -m755 neroAacEnc /usr/bin/; cd
# mp4v2 - ABC dependency
- mkdir mp4v2; cd mp4v2/; wget https://emorel.li/dl/mp4v2-1.9.1.tar.bz2
- tar -xf ./mp4v2-1.9.1.tar.bz2; cd mp4v2-1.9.1
- ./configure; make; sudo make install
- sudo ln -s /usr/local/lib/libmp4v2.so.1.9.1 /usr/lib/libmp4v2.so.1; cd
# ABC
- wget https://emorel.li/dl/abc_0.0.4-0ubuntu1_all.deb -O abc_0.0.4-0ubuntu1_all.deb
- sudo dpkg -i abc_0.0.4-0ubuntu1_all.deb
# Clean Up
- sudo apt-get -f install
- cd ~/build/ErinMorelli/em-media-handler
# Install mediahandler
- python ./setup.py install
script:
# Run test suite
- coverage run --source=mediahandler setup.py test
after_success:
# Send coverage results to coveralls
coveralls