travis added

pull/45/head
Ilya Etingof 2016-03-12 10:08:18 +01:00
parent fc9925bc33
commit 98b42276e0
4 changed files with 40 additions and 1 deletions

19
.travis.yml 100644
View File

@ -0,0 +1,19 @@
language: python
python:
- "2.6"
- "2.7"
- "3.2"
- "3.3"
- "3.4"
- "3.5"
- "nightly"
- "pypy"
- "pypy3"
install:
- pip install pyasn1
- pip install pycrypto
- pip install pysmi
- python setup.py install
script:
- sh runtests.sh

View File

@ -1,4 +1,4 @@
include *.txt *.md
include *.txt *.md *.sh
recursive-include examples *.py
recursive-include docs/source *.rst *.svg *.py
recursive-include docs/mibs *.txt

View File

@ -1,6 +1,9 @@
SNMP library for Python
-----------------------
[![Downloads](https://img.shields.io/pypi/dm/pysnmp.svg)](https://pypi.python.org/pypi/pysnmp)
[![Build status](https://travis-ci.org/etingof/pysnmp.svg?branch=master)](https://secure.travis-ci.org/etingof/pysnmp)
[![GitHub license](https://img.shields.io/badge/license-BSD-blue.svg)](https://raw.githubusercontent.com/etingof/pysnmp/master/LICENSE.txt)
This is a pure-Python, open source and free implementation of v1/v2c/v3
SNMP engine distributed under 2-clause [BSD license](http://pysnmp.sourceforge.net/license.html).

17
runtests.sh 100755
View File

@ -0,0 +1,17 @@
#!/usr/bin/env sh
set -e
for x in examples/hlapi/asyncore/sync/manager/cmdgen/*.py \
examples/hlapi/asyncore/sync/agent/ntforg/*.py \
examples/hlapi/asyncore/manager/cmdgen/*.py \
examples/hlapi/asyncore/agent/ntforg/*.py \
examples/v3arch/asyncore/manager/cmdgen/*.py \
examples/v3arch/asyncore/agent/ntforg/*.py \
examples/v1arch/asyncore/manager/cmdgen/*.py \
examples/v1arch/asyncore/agent/ntforg/*.py \
examples/smi/manager/*py \
examples/smi/agent/*.py
do
python $x
done