forked from ml-lab/DeepVideoAnalytics
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
60 lines (49 loc) · 1.95 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
sudo: required
language: python
branches:
only:
- master
python:
- "2.7"
services:
- docker
- postgresql
- rabbitmq
virtualenv:
system_site_packages: true
env:
global:
- YOLO_ENABLE=1
before_install:
- sudo add-apt-repository ppa:mc3man/trusty-media -y
- sudo apt-get update -q
- sudo apt-get install -y ffmpeg
- sudo apt-get install -y pkg-config python-dev python-opencv unzip swig3.0 libopencv-dev python-pip libav-tools libjpeg-dev libpng-dev libtiff-dev libjasper-dev python-numpy python-scipy python-pycurl python-opencv
- sudo dpkg -L python-opencv
- sudo wget https://yt-dl.org/downloads/latest/youtube-dl -O /bin/youtube-dl
- sudo chmod a+rx /bin/youtube-dl
- youtube-dl -U
- pip install --only-binary=numpy,scipy numpy
install: "pip install -r requirements.txt > /dev/null"
before_script:
- cd repos/lopq/python && python setup.py install && cd ../../..
- cd darknet && wget https://www.dropbox.com/s/0zopjpswug5rjqy/yolo9000.weights && make && cd ..
- python manage.py migrate
- python manage.py runserver 8000 &
- cd dvalib/ssd/checkpoints && unzip ssd_300_vgg.ckpt.zip && cd ../../..
- cd dvalib/facenet/facenet_model && wget https://www.dropbox.com/s/2unad9skmc7msel/model-20170306-150500.ckpt-250000.data-00000-of-00001 && cd ../../..
- cd dvalib/facenet/facenet_model && wget https://www.dropbox.com/s/j8ky6bl0jgpygp6/model-20170306-150500.ckpt-250000.index && cd ../../..
- cd dvalib/facenet/facenet_model && wget https://www.dropbox.com/s/tnebmpku7xtzwnv/model-20170306-150500.meta && cd ../../..
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
- sleep 3 # give xvfb some time to start
script:
- fab ci
- wget localhost:8000
- wget localhost:8000/videos/
- wget localhost:8000/videos/1/
- wget localhost:8000/status
- wget localhost:8000/queries/
- wget http://www.visualdata.network/api/
- wget http://www.visualdata.network/
- wget http://www.visualdata.network/get_token/