Merge pull request #35 from slackhq/adding_travis_ci
Adding Travis CI Integration
This commit is contained in:
		
						commit
						4441a56011
					
				
					 6 changed files with 50 additions and 0 deletions
				
			
		
							
								
								
									
										1
									
								
								.gitignore
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										1
									
								
								.gitignore
									
										
									
									
										vendored
									
									
								
							| 
						 | 
				
			
			@ -2,3 +2,4 @@
 | 
			
		|||
/rtmbot.conf
 | 
			
		||||
/plugins/**
 | 
			
		||||
env
 | 
			
		||||
.tox
 | 
			
		||||
							
								
								
									
										18
									
								
								.travis.yml
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										18
									
								
								.travis.yml
									
										
									
									
									
										Normal 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
 | 
			
		||||
| 
						 | 
				
			
			@ -1,5 +1,8 @@
 | 
			
		|||
python-rtmbot
 | 
			
		||||
=============
 | 
			
		||||
 | 
			
		||||
[](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
									
								
							
							
						
						
									
										3
									
								
								requirements-dev.txt
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,3 @@
 | 
			
		|||
pytest>=2.8.2
 | 
			
		||||
pytest-pythonpath>=0.3
 | 
			
		||||
tox>=1.8.0
 | 
			
		||||
							
								
								
									
										2
									
								
								tests/test_example.py
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										2
									
								
								tests/test_example.py
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,2 @@
 | 
			
		|||
def test_example():
 | 
			
		||||
	assert True
 | 
			
		||||
							
								
								
									
										23
									
								
								tox.ini
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										23
									
								
								tox.ini
									
										
									
									
									
										Normal 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
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue