Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some modernization of the test running #35

Merged
merged 3 commits into from Sep 24, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
10 changes: 10 additions & 0 deletions .gitignore
@@ -0,0 +1,10 @@
# This file is generated by Cython
ext/_yaml.c

# Tox and Build Artifacts
.tox/
MANIFEST
build/

# Python runtime Artifacts
*.pyc
28 changes: 28 additions & 0 deletions .travis.yml
@@ -0,0 +1,28 @@
language: python

sudo: false

cache:
directories:
- $HOME/.cache/pip

matrix:
include:
- python: 2.6
env: TOXENV=py26
- python: 2.7
env: TOXENV=py27
- python: 3.3
env: TOXENV=py33
- python: 3.4
env: TOXENV=py34
- python: 3.5
env: TOXENV=py35
- python: pypy
env: TOXENV=pypy PYPY_VERSION=5.1

install:
- ./.travis/install.sh

script:
- tox
17 changes: 17 additions & 0 deletions .travis/install.sh
@@ -0,0 +1,17 @@
# temporary pyenv installation to get latest pypy until the travis
# container infra is upgraded
if [[ "${TOXENV}" = pypy* ]]; then
git clone https://github.com/yyuu/pyenv.git ~/.pyenv
PYENV_ROOT="$HOME/.pyenv"
PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init -)"
pyenv install "pypy-$PYPY_VERSION"
pyenv global "pypy-$PYPY_VERSION"

pip install --upgrade tox

pyenv rehash
fi


pip install --upgrade tox
8 changes: 8 additions & 0 deletions tox.ini
@@ -0,0 +1,8 @@
[tox]
envlist = py26,py27,pypy,py33,py34,py35,

[testenv]
deps =
Cython
commands =
python setup.py test