forked from Screenly/Anthias
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
51 lines (49 loc) · 1.88 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: python
python:
- "2.7"
virtualenv:
system_site_packages: true
addons:
firefox: "45.0"
apt:
update: true
packages:
- net-tools
- mplayer
- ffmpeg
- python-gobject
- python-setuptools
install:
- pip install -U pip
- pip install -r requirements/requirements.txt
- pip install -r requirements/requirements.dev.txt
before_script:
- mkdir -p ~/.screenly ~/.config/uzbl/ ~/screenly_assets /tmp/USB/cleanup_folder
- 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/
- sudo cp bin/install.sh /usr/local/sbin/upgrade_screenly.sh
- sudo chmod 0700 /usr/local/sbin/upgrade_screenly.sh
- echo -e "[local]\nlocalhost ansible_connection=local" > ansible/localhost
- curl https://www.screenly.io/upload/ose-logo.png > /tmp/image.png
- cp /tmp/image.png /tmp/USB/image.png
- cp /tmp/image.png /tmp/USB/cleanup_folder/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
- cp tests/assets/asset.mov /tmp/asset.mov
- 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
- sudo cp tests/config/ffserver.conf /etc/ffserver.conf
- /usr/bin/ffserver -f /etc/ffserver.conf &
- 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'
- ansible-playbook --syntax-check -i ansible/localhost ansible/site.yml
- python -m SimpleHTTPServer 8081 &
- sleep 3
- bash static/spec/runner.sh
sudo: false
dist: xenial