From f85045e5c490332edef846bc380d49753b12f516 Mon Sep 17 00:00:00 2001 From: Brandon Amos Date: Tue, 22 Dec 2015 23:11:44 -0500 Subject: [PATCH] Travis: Run tests in Docker image. --- .travis.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 5874e3f..406ef8d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,9 +1,15 @@ +sudo: requires +services: + - docker + language: python python: - "2.7" install: - - pip install pep8 + - pip install nosetests pep8 script: - pep8 --ignore=E402,E501 . + - docker build -t openface docker/Dockerfile + - docker run -t -i openface "nosetests2 -v -d ~/src/openface/test.py"