12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970 |
- sudo: required
- dist: trusty
- language: python
- matrix:
- include:
- - os: linux
- python: "2.7"
- env: COVERALLS=1
- - os: linux
- python: "3.4"
- - os: linux
- python: "3.5"
- - os: linux
- python: "3.6"
- - os: osx
- language: generic
- env:
- - OSXENV=3.6.0
- - os: osx
- language: generic
- env:
- - OSXENV=2.7.14
- install:
- - export PYVER=${TRAVIS_PYTHON_VERSION:0:1}
- - if [ $PYVER = 3 ]; then
- export PYCMD=python3;
- export PIPCMD=pip3;
- else
- export PYCMD=python;
- export PIPCMD=pip;
- fi;
- - if [ $COVERALLS = 1 ]; then
- $PIPCMD install --upgrade coveralls;
- fi;
- - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
- brew update;
- brew install pyenv;
- brew upgrade pyenv;
- brew install pyenv-virtualenv;
- eval "$(pyenv init -)";
- eval "$(pyenv virtualenv-init -)";
- pyenv install $OSXENV;
- pyenv virtualenv $OSXENV venv;
- pyenv activate venv;
- which python;
- python --version;
- which pip;
- export PYCMD=python;
- export PIPCMD=pip;
- fi;
- - $PIPCMD install lxml enum34 pyyaml rdflib
- script:
- - which $PYCMD
- - $PYCMD setup.py build
- - if [ $COVERALLS = 1 ]; then
- coverage${PYVER} run --source=odml setup.py test && coverage${PYVER} report -m;
- else
- $PYCMD setup.py test;
- fi;
- after_success:
- - if [ $COVERALLS = 1 ]; then coveralls; fi;
|