Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
33 lines (29 sloc) 1.2 KB
# http://travis-ci.org/#!/RDFLib/rdflib-jsonld
language: python
# whitelist
branches:
only:
- master
python:
- "2.6"
- "2.7"
#- "3.2"
- "3.3"
before_install:
# Travis has too old setuptools for html5lib. Please remove this when a fix
# for html5lib or rdflib is released.
- pip install -U setuptools pip
install:
# iodate0.4.8 is problematic with Pypy, use fixed version
- if [[ $TRAVIS_PYTHON_VERSION == '2.5' ]]; then pip install --use-mirrors "simplejson==2.0.9"; fi
- if [[ $TRAVIS_PYTHON_VERSION == 'pypy' ]]; then pip install --upgrade "https://bitbucket.org/gjhiggins/isodate/downloads/isodate-0.4.8.tar.gz"; fi
- pip install -r requirements.travis.txt
- python setup.py install
before_script:
- if [[ ${TRAVIS_PYTHON_VERSION%%.*} == '2' ]]; then flake8 --exclude=test --exit-zero rdflib_jsonld; fi
script:
# Must run the tests in build/src so python3 doesn't get confused and run
# the python2 code from the current directory instead of the installed
# 2to3 version in build/src.
- if [[ ${TRAVIS_PYTHON_VERSION%%.*} == '2' ]]; then nosetests; fi
- if [[ ${TRAVIS_PYTHON_VERSION%%.*} == '3' ]]; then nosetests --where=./build/src; fi