forked from Screenly/Anthias
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
45 lines (43 loc) · 1.64 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
language: python
python:
- "2.7"
addons:
firefox: "45.0"
apt:
packages:
- net-tools
- mplayer
- python-setuptools
before_install:
- sudo add-apt-repository ppa:mc3man/trusty-media -y
- sudo apt-get update -q
- sudo apt-get install ffmpeg
install:
- pip install -U pip
- pip install -r requirements.txt
- pip install -r requirements.dev.txt
before_script:
- mkdir -p ~/.screenly ~/.config/uzbl/ ~/screenly_assets
- cp ansible/roles/screenly/files/uzbl-config ~/.config/uzbl/config-screenly
- cp ansible/roles/screenly/files/screenly.conf ~/.screenly/
- cp ansible/roles/screenly/files/screenly.db ~/.screenly/
- cp ansible/roles/screenly/files/screenly_utils.sh /tmp/screenly_utils.sh
- echo -e "[local]\nlocalhost ansible_connection=local" > ansible/localhost
- curl https://www.screenly.io/upload/ose-logo.png > /tmp/image.png
- curl https://www.screenly.io/upload/ose-logo.png > ~/screenly_assets/image.tmp
- curl https://www.screenly.io/upload/big_buck_bunny_720p_10mb.flv > /tmp/video.flv
- export DISPLAY=:99.0
- /sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_99.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :99 -ac -screen 0 1280x1024x16
- python tests/rtmplite/rtmp.py -r /tmp/ &
- sleep 3
- python server.py &
- sleep 3 # give xvfb some time to start
script:
- find . ! -path "*/rtmplite/*" -name \*.py -exec pep8 --ignore=E402,E501,E731 {} +
- nosetests -v -a '!fixme' --with-isolation
- ansible-playbook --syntax-check -i ansible/localhost ansible/site.yml
- python -m SimpleHTTPServer 8081 &
- sleep 3
- bash static/spec/runner.sh
sudo: false
dist: trusty