forked from ml-lab/DeepVideoAnalytics
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
94 lines (82 loc) · 3.31 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
sudo: required
group: deprecated-2017Q2
language: python
branches:
only:
- master
python:
- "2.7"
services:
- docker
- postgresql
- rabbitmq
addons:
postgresql: "9.6"
virtualenv:
system_site_packages: true
env:
global:
- AUTH_DISABLED=1
- LAUNCH_BY_NAME_indexer_inception=1
- LAUNCH_BY_NAME_retriever_inception=1
- LAUNCH_BY_NAME_detector_coco=1
- LAUNCH_Q_qclusterer=1
- TRAVISTEST=1
before_install:
- sudo apt-get -qq update
- wget https://johnvansickle.com/ffmpeg/releases/ffmpeg-release-64bit-static.tar.xz && tar xvfJ ffmpeg-release-64bit-static.tar.xz
- sudo mv ffmpeg*/* /bin/
- sudo apt-get -qq install -y pkg-config python-dev unzip swig3.0 libopencv-dev libhdf5-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 --quiet https://yt-dl.org/downloads/latest/youtube-dl -O /bin/youtube-dl
- sudo chmod a+rx /bin/youtube-dl
- youtube-dl -U
- pip install -q --only-binary=numpy,scipy numpy scipy
- pip install -q https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-1.4.0-cp27-none-linux_x86_64.whl
- pip install -q --no-deps keras
- pip install -q --no-deps h5py
- pip install -q --no-cache-dir http://download.pytorch.org/whl/cu75/torch-0.1.12.post2-cp27-none-linux_x86_64.whl
- pip install -q torchvision
install: "pip install -q -r requirements.txt > /dev/null"
before_script:
- mkdir ~/media
- cd repos/lopq/python && python setup.py install && cd ../../..
- cd repos/tf_ctpn_cpu/lib/utils && ./make.sh && cd ../../../..
- cd server && python manage.py migrate && cd ..
- cd tests/ci && wget --quiet https://www.dropbox.com/s/t4bgkh2w2ow8o10/WorldIsNotEnough.mp4 && cd ../..
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
- sleep 3 # give xvfb some time to start
- cd server && python manage.py runserver 8000 &
script:
- cd server && ./copy_defaults.py && ./init_fs.py && cd ..
- cd tests && python test_ci.py && python test_ci_face.py && cd ..
- cd server && ./launch_from_env.py && cd ..
- cd tests && python test_ci_search.py && cd ..
- wget --quiet localhost:8000
- wget --quiet localhost:8000/videos/
- wget --quiet localhost:8000/videos/1/
- wget --quiet localhost:8000/status
- wget --quiet localhost:8000/queries/
- wget --quiet localhost:8000/queries/1/
- wget --quiet localhost:8000/tasks/
- wget --quiet localhost:8000/retrievers/
- wget --quiet localhost:8000/textsearch/
- wget --quiet localhost:8000/models/
- wget --quiet localhost:8000/status
- wget --quiet localhost:8000/api/users/
- wget --quiet localhost:8000/api/videos/
- wget --quiet localhost:8000/api/tubes/
- wget --quiet localhost:8000/api/frames/
- wget --quiet localhost:8000/api/framelabels/
- wget --quiet localhost:8000/api/regionlabels/
- wget --quiet localhost:8000/api/segmentlabels/
- wget --quiet localhost:8000/api/tubelabels/
- wget --quiet localhost:8000/api/videolabels/
- wget --quiet localhost:8000/api/labels/
- wget --quiet localhost:8000/api/segments/
- wget --quiet localhost:8000/api/regions/
- wget --quiet localhost:8000/api/queries/
- wget --quiet localhost:8000/api/queryresults/
- wget --quiet localhost:8000/api/indexentries/
- wget --quiet localhost:8000/api/events/