Merge pull request #35 from slackhq/adding_travis_ci

Adding Travis CI Integration
This commit is contained in:
Jeff Ammons 2016-04-15 12:28:39 -07:00
commit 4441a56011
6 changed files with 50 additions and 0 deletions

1
.gitignore vendored
View file

@ -2,3 +2,4 @@
/rtmbot.conf
/plugins/**
env
.tox

18
.travis.yml Normal file
View file

@ -0,0 +1,18 @@
sudo: false
language: python
python:
- "3.5"
env:
matrix:
- TOX_ENV=py27
- TOX_ENV=py34
- TOX_ENV=py35
- TOX_ENV=flake8
cache: pip
install:
- "travis_retry pip install setuptools --upgrade"
- "travis_retry pip install tox"
script:
- tox -e $TOX_ENV
after_script:
- cat .tox/$TOX_ENV/log/*.log

View file

@ -1,5 +1,8 @@
python-rtmbot
=============
[![Build Status](https://travis-ci.org/slackhq/python-rtmbot.png)](https://travis-ci.org/slackhq/python-rtmbot)
A Slack bot written in python that connects via the RTM API.
Python-rtmbot is a callback based bot engine. The plugins architecture should be familiar to anyone with knowledge to the [Slack API](https://api.slack.com) and Python. The configuration file format is YAML.

3
requirements-dev.txt Normal file
View file

@ -0,0 +1,3 @@
pytest>=2.8.2
pytest-pythonpath>=0.3
tox>=1.8.0

2
tests/test_example.py Normal file
View file

@ -0,0 +1,2 @@
def test_example():
assert True

23
tox.ini Normal file
View file

@ -0,0 +1,23 @@
[tox]
envlist=
py{27,34,35},
flake8
skipsdist=true
[flake8]
max-line-length= 100
exclude= tests/*
[testenv]
commands=py.test {posargs:tests}
deps =
-r{toxinidir}/requirements-dev.txt
basepython =
py27: python2.7
py34: python3.4
py35: python3.5
[testenv:flake8]
basepython=python
deps=flake8
commands=flake8 {toxinidir}/rtmbot.py {toxinidir}/example-plugins