From 505d499185062aa42d1da19e3d7c1dc6b16b3afd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Vinot?= Date: Fri, 6 Nov 2015 19:18:45 +0100 Subject: Fix travis config The tests fail on travis ci because the libmagic 5.09 is buggy. --- .travis.yml | 16 +++++++++++++++- setup.py | 6 ++++-- test/__init__.py | 0 test/test.py | 0 4 files changed, 19 insertions(+), 3 deletions(-) create mode 100644 test/__init__.py mode change 100644 => 100755 test/test.py diff --git a/.travis.yml b/.travis.yml index e2246f6..619d195 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,8 +1,22 @@ language: python + python: - "2.6" - "2.7" - "3.2" - "3.3" + - "3.4" + - "3.5" + - "nightly" + +install: + - pip install coveralls + - pip install codecov + - python setup.py install + script: - - python test.py + - coverage run setup.py test + +after_success: + - coveralls + - codecov diff --git a/setup.py b/setup.py index eac534b..4e816f7 100644 --- a/setup.py +++ b/setup.py @@ -1,5 +1,7 @@ -from setuptools import setup, Extension -#from distutils.core import setup, Extension +#!/usr/bin/env python +# -*- coding: utf-8 -*- + +from setuptools import setup setup(name='python-magic', description='File type identification using libmagic', diff --git a/test/__init__.py b/test/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/test/test.py b/test/test.py old mode 100644 new mode 100755 -- cgit v1.2.1