-
Notifications
You must be signed in to change notification settings - Fork 22
/
.travis.yml
38 lines (31 loc) · 1.19 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
language: python
dist: xenial
python:
- 3.6
before_install:
- sudo apt-get -qq update
- sudo apt-get install -y yasm libtool python3-dev libchromaprint-dev portaudio19-dev
# boost and libav are now up to date in ubuntu repos.
- sudo apt-get install libboost-dev libavformat-dev libavresample-dev
#fedora 23
## add rpmfusion for ffmpeg
# su -c 'dnf install http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm'
## dev
# dnf install -y git python gcc gcc-c++ redhat-rpm-config python-devel boost-devel ffmpeg-devel portaudio-devel libchromaprint-devel
## run
# dnf install -y python ffmpeg portaudio libchromaprint
install:
# necessary to build wheels.
- pip3 install --upgrade pip setuptools wheel
script:
- python3 setup.py build
# using pip to install so we don't need to be root.
- pip3 install .
- python3 -c "import sys; print(sys.path); import musicplayer as mp; p = mp.createPlayer()"
# Deploy package to PyPi
deploy:
provider: pypi
user: __token__
password : ${PYPI_TOKEN}
distributions: "sdist bdist_wheel"
skip_existing: true