From 2782bec8130eeb3b02ed106708eed69376c57a92 Mon Sep 17 00:00:00 2001 From: Dmitry Tantsur Date: Thu, 2 Oct 2014 18:37:01 +0200 Subject: [PATCH] Enable Travis and make test --- .travis.yml | 5 +++++ Makefile | 6 ++++++ 2 files changed, 11 insertions(+) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 000000000..cdb73c3d5 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,5 @@ +language: python +python: + - "2.7" +install: make test_env +script: make test diff --git a/Makefile b/Makefile index e077a35a7..5f3e13a11 100644 --- a/Makefile +++ b/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