Unverified Commit 567d2c93 by Marcin Bury Committed by GitHub

Adding travis (#396)

parent 7383c584
language: python
matrix:
include:
- os: linux
python 3.5
- os: linux
python 3.6
- os: osx
language: generic
env: PYTHON_VERSION=3.5.3
- os: osx
language: generic
env: PYTHON_VERSION=3.6.1
install:
- "./.travis/install.sh"
script:
- "./.travis/run.sh"
#!/bin/bash
set -e
set -x
if [[ "$(uname -s)" == 'Darwin' ]]; then
sw_vers
git clone --depth 1 https://github.com/yyuu/pyenv.git ~/.pyenv
PYENV_ROOT="$HOME/.pyenv"
PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init -)"
pyenv install $PYTHON_VERSION
pyenv global $PYTHON_VERSION
pyenv rehash
pip install --user --upgrade pip
pip install --user virtualenv
python -m virtualenv ~/.venv
source ~/.venv/bin/activate
fi
python -m pip install -r requirements-dev.txt
#!/bin/bash
set -e
set -x
if [[ "$(uname -s)" == "Darwin" ]]; then
PYENV_ROOT="$HOME/.pyenv"
PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init -)"
source ~/.venv/bin/activate
fi
python -m pytest -n16 tests/
future>=0.16.0
requests>=2.9.1
paramiko>=1.16.0
pysnmp>=4.3.2
pycrypto==2.6.1
pytest==3.5.1
pytest-forked==0.2
pytest-xdist==1.22.2
[tox]
skipsdist = True
envlist = py27,py34,py35,py36
envlist = py35,py36
[testenv]
deps =
mock
pexpect
pytest
-r{toxinidir}/requirements.txt
commands=python -m unittest discover
commands=python -m pytest -n16 tests/
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment