diff options
author | Adam Stokes <adam.stokes@ubuntu.com> | 2013-04-04 20:50:59 -0400 |
---|---|---|
committer | Adam Stokes <adam.stokes@ubuntu.com> | 2013-04-04 20:50:59 -0400 |
commit | 0c48b167ea53362b67c46a10c17ee7bc9ea9887a (patch) | |
tree | 0c4871eb82bc7611cdc29e6711861f26b506422e /.travis.yml | |
parent | 76156e8b7a8b7a31e30038819d0aa0d7ca5de197 (diff) | |
download | sos-0c48b167ea53362b67c46a10c17ee7bc9ea9887a.tar.gz |
Fix unittests and more pep8 conforming
- In our unittest we defined 'is_installed' to be a bool when in fact we wanted
to verify if a package is installed via the _method_ is is_installed. Since
overriding that method with our variable definition we basically removed
any functionality of 'is_installed' method in Plugin class.
- Initializing a fake plugin to test was failing due to our global
logger not being initialized. Put a simple check in the library to
make sure the logger is defined no matter what the calling state does.
- Make import selinux conditional
- Add travis-ci support
- Rename README to utilize travis-ci build status and other markdown supported
features
Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
Diffstat (limited to '.travis.yml')
-rw-r--r-- | .travis.yml | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 00000000..9b2061b1 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,15 @@ +language: python +python: + - 2.6 + - 2.7 + - 3.2 + - 3.3 + - "pypy" +env: + - DEPS=false + - DEPS=true +install: + - "make gpgkey" + - "DESTDIR=. make install" +script: + - "make test" |