openface/.travis.yml

31 lines
898 B
YAML
Raw Normal View History

2015-12-23 12:11:44 +08:00
sudo: requires
2015-12-25 00:45:13 +08:00
services:
- docker
language: python
2015-12-25 00:45:13 +08:00
python:
- "2.7"
2015-12-25 00:45:41 +08:00
install:
# - pip install flake8 pep257
2015-12-27 21:47:24 +08:00
- sudo apt-get update -qq
# - sudo apt-get install -y luarocks wget
# - 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 .
# - pep257 --ignore D104,D203,D400,D402 openface
# - 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 \
"source /root/torch/install/bin/torch-activate; \
cd /root/src/openface; \
2016-01-08 07:28:05 +08:00
./models/get-models.sh && \
2016-01-12 01:00:14 +08:00
./data/download-lfw-subset.sh && \
2017-02-08 02:43:42 +08:00
wget -nv https://cmusatyalab.org/openface-models/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 && \
2016-01-12 01:13:14 +08:00
./run-tests.sh"