forked from albertz/music-player-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
51 lines (44 loc) · 1.51 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
language: cpp
python:
- "2.7" # this is the officially tested and supported one for now
- "2.6"
- "3.2"
- "3.3"
matrix:
allow_failures:
# not tested at all yet:
- python: 2.6
- python: 3.2
- python: 3.3
compiler:
- clang
# No GCC atm because gcc 4.6 doesn't know about "--std=c++11" and I dont want
# to have extra handling just for GCC.
# Travis' Boost is too old (1.46 I think; it misses boost/atomic.hpp).
# We need at least >=1.55. smart_ptr/intrusive_ref_counter.hpp doesn't exist in older ones.
# Thus, install a newer one:
before_install:
- wget http://sourceforge.net/projects/boost/files/boost/1.55.0/boost_1_55_0.tar.bz2
- tar --bzip2 -xf boost_1_55_0.tar.bz2
- cd boost_1_55_0
- ./bootstrap.sh --help
# We only need atomic (and also only header-only).
# All the rest takes way too much time to compile.
- sudo ./bootstrap.sh --with-libraries="atomic"
# Way too much output, so just display the last 50 lines.
- sudo ./b2 install | tail -n 50
- cd ..
env:
CFLAGS=-I/usr/local/include
install:
- sudo apt-get update
- sudo apt-get install python-dev libsnappy-dev libtool
- sudo apt-get install yasm libchromaprint-dev portaudio19-dev libboost-dev
# For FFmpeg, we need a custom PPA because it's too old otherwise.
- sudo add-apt-repository ppa:jon-severinsson/ffmpeg -y
- sudo apt-get update
- sudo apt-get install libavformat-dev libswresample-dev
script:
- python setup.py build
- sudo python setup.py install
- python -c "import musicplayer as mp; p = mp.createPlayer()"