Skip to content
This repository has been archived by the owner on Mar 31, 2024. It is now read-only.

Commit

Permalink
Merge pull request #93 from futoase/support-travis
Browse files Browse the repository at this point in the history
Created: Added .travis.yml
  • Loading branch information
kennethreitz authored Aug 29, 2017
2 parents dc8fbfd + 85d5f52 commit b16b224
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 4 deletions.
13 changes: 13 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
language: python
python:
- 2.6
- 2.7
- 3.2
- 3.3
- pypy
install:
- pip install pytest args coveralls pytest-cov
script:
- py.test --cov clint
after_success:
- coveralls
4 changes: 4 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ Run the various executables in examples_ to get a good feel for what Clint offer

You'll never want to not use it.

.. image:: https://travis-ci.org/ashleyh/clint.png?branch=master
:target: https://travis-ci.org/ashleyh/clint
.. image:: https://coveralls.io/repos/ashleyh/clint/badge.png?branch=master
:target: https://coveralls.io/r/ashleyh/clint?branch=master


Current Features:
Expand Down
1 change: 1 addition & 0 deletions clint/textui/colored.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
PY3 = sys.version_info[0] >= 3

from ..packages import colorama
from ..utils import basestring

__all__ = (
'red', 'green', 'yellow', 'blue',
Expand Down
2 changes: 1 addition & 1 deletion clint/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
from glob import glob

try:
basestring
basestring = basestring
except NameError:
basestring = str

Expand Down
6 changes: 4 additions & 2 deletions examples/args.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-

from __future__ import print_function

import sys
import os

Expand All @@ -17,6 +19,6 @@
puts(colored.red('Files detected: ') + str(args.files))
puts(colored.red('NOT Files detected: ') + str(args.not_files))
puts(colored.red('Grouped Arguments: ') + str(dict(args.grouped)))
print

print()

2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tox]
envlist = py26,py27,py3
envlist = py26,py27,py32,py33

[testenv]
commands=py.test --junitxml=junit-{envname}.xml
Expand Down

0 comments on commit b16b224

Please sign in to comment.