Enable Travis and make test

This commit is contained in:
Dmitry Tantsur 2014-10-02 18:37:01 +02:00
parent 067e76f60d
commit 2782bec813
2 changed files with 11 additions and 0 deletions

5
.travis.yml Normal file
View File

@ -0,0 +1,5 @@
language: python
python:
- "2.7"
install: make test_env
script: make test

View File

@ -2,8 +2,14 @@ run:
.env/bin/python setup.py install
.env/bin/python -m ironic_discoverd
test:
.env/bin/flake8 ironic_discoverd
env:
rm -rf .env
virtualenv .env
.env/bin/pip install -r requirements.txt
@echo "Run source .env/bin/activate"
test_env: env
.env/bin/pip install flake8