Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add travis integration

  • Loading branch information...
commit b0ee6417736ad5b2058c1c7d9f45c99a24104931 1 parent a684050
@klen authored
Showing with 20 additions and 2 deletions.
  1. +15 −0 .travis.yml
  2. +4 −1 Makefile
  3. +1 −1  inirama.py
View
15 .travis.yml
@@ -0,0 +1,15 @@
+language: python
+
+python:
+ - "2.6"
+ - "2.7"
+
+branches:
+ only:
+ - master
+ - develop
+
+install:
+ - pip install -IM pylama
+
+script: make travis
View
5 Makefile
@@ -1,4 +1,4 @@
-MODULE=inirama
+MODULE=inirama.py
SPHINXBUILD=sphinx-build
ALLSPHINXOPTS= -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) .
BUILDDIR=_build
@@ -51,3 +51,6 @@ pep8:
.env: requirements.txt
virtualenv --no-site-packages .env
.env/bin/pip install -M -r requirements.txt
+
+.PHONY: travis
+travis: audit test
View
2  inirama.py
@@ -181,7 +181,7 @@ def parse(self, source):
name, value = re.split('[=:]', token[1], 1)
self[section][name.strip()] = value.strip()
- if token[0] == 'SECTION':
+ elif token[0] == 'SECTION':
section = token[1].strip('[]')
def __getitem__(self, name):
Please sign in to comment.
Something went wrong with that request. Please try again.