Enable Travis and make test
This commit is contained in:
parent
067e76f60d
commit
2782bec813
5
.travis.yml
Normal file
5
.travis.yml
Normal file
@ -0,0 +1,5 @@
|
||||
language: python
|
||||
python:
|
||||
- "2.7"
|
||||
install: make test_env
|
||||
script: make test
|
6
Makefile
6
Makefile
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user