Skip to content
This repository was archived by the owner on Aug 15, 2022. It is now read-only.

Commit 4441a56

Browse files
committed
Merge pull request #35 from slackhq/adding_travis_ci
Adding Travis CI Integration
2 parents 22fb111 + a772615 commit 4441a56

File tree

6 files changed

+50
-0
lines changed

6 files changed

+50
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@
22
/rtmbot.conf
33
/plugins/**
44
env
5+
.tox

.travis.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
sudo: false
2+
language: python
3+
python:
4+
- "3.5"
5+
env:
6+
matrix:
7+
- TOX_ENV=py27
8+
- TOX_ENV=py34
9+
- TOX_ENV=py35
10+
- TOX_ENV=flake8
11+
cache: pip
12+
install:
13+
- "travis_retry pip install setuptools --upgrade"
14+
- "travis_retry pip install tox"
15+
script:
16+
- tox -e $TOX_ENV
17+
after_script:
18+
- cat .tox/$TOX_ENV/log/*.log

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
python-rtmbot
22
=============
3+
4+
[![Build Status](https://travis-ci.org/slackhq/python-rtmbot.png)](https://travis-ci.org/slackhq/python-rtmbot)
5+
36
A Slack bot written in python that connects via the RTM API.
47

58
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.

requirements-dev.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
pytest>=2.8.2
2+
pytest-pythonpath>=0.3
3+
tox>=1.8.0

tests/test_example.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
def test_example():
2+
assert True

tox.ini

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
[tox]
2+
envlist=
3+
py{27,34,35},
4+
flake8
5+
skipsdist=true
6+
7+
[flake8]
8+
max-line-length= 100
9+
exclude= tests/*
10+
11+
[testenv]
12+
commands=py.test {posargs:tests}
13+
deps =
14+
-r{toxinidir}/requirements-dev.txt
15+
basepython =
16+
py27: python2.7
17+
py34: python3.4
18+
py35: python3.5
19+
20+
[testenv:flake8]
21+
basepython=python
22+
deps=flake8
23+
commands=flake8 {toxinidir}/rtmbot.py {toxinidir}/example-plugins

0 commit comments

Comments
 (0)