2015-12-23 12:11:44 +08:00
|
|
|
sudo: requires
|
2015-12-25 00:45:13 +08:00
|
|
|
services:
|
|
|
|
- docker
|
|
|
|
|
2015-10-13 19:37:40 +08:00
|
|
|
language: python
|
2015-12-25 00:45:13 +08:00
|
|
|
python:
|
|
|
|
- "2.7"
|
2015-12-23 13:20:03 +08:00
|
|
|
|
2015-12-25 00:45:41 +08:00
|
|
|
install:
|
2015-12-31 02:24:00 +08:00
|
|
|
- pip install flake8 pep257
|
2015-12-27 21:47:24 +08:00
|
|
|
- sudo apt-get update -qq
|
2016-01-08 07:28:05 +08:00
|
|
|
- sudo apt-get install -y luarocks wget
|
2015-12-27 21:49:06 +08:00
|
|
|
- sudo luarocks install luacheck
|
2015-12-27 21:41:57 +08:00
|
|
|
- docker pull bamos/openface
|
2015-12-25 00:45:41 +08:00
|
|
|
|
|
|
|
script:
|
|
|
|
- flake8 --ignore=E402,E501 .
|
2015-12-31 02:14:55 +08:00
|
|
|
- pep257 --ignore D104,D203,D400,D402 openface
|
2015-12-27 22:09:14 +08:00
|
|
|
- luacheck . --no-global --no-self --exclude-files '*/torch-TripletEmbedding'
|
2015-12-24 05:07:29 +08:00
|
|
|
- |
|
|
|
|
docker run -v $PWD:/root/src/openface bamos/openface \
|
2016-01-08 07:28:05 +08:00
|
|
|
/bin/bash -l -c \
|
|
|
|
"cd /root/src/openface; \
|
|
|
|
./models/get-models.sh && \
|
|
|
|
wget http://openface-models.storage.cmusatyalab.org/nn4.v1.t7 \
|
2016-01-08 07:44:11 +08:00
|
|
|
-O ./models/openface/nn4.v1.t7 && \
|
2016-01-08 07:28:05 +08:00
|
|
|
python2 setup.py install && \
|
|
|
|
nosetests-2.7 -v -d test.py"
|