Permalink
Browse files

Add support for AAF unit tests in travis. (#370)

* Fix dependencies to include pyaaf on linux.
* Make tests print in verbose mode so that its easier to see what gets skipped.
* Remove python37 since we aren't supporting it yet.
* Only run unit tests once.
  • Loading branch information...
ssteinbach authored and jminor committed Nov 12, 2018
1 parent fec780c commit e1b4b459a7b07b9e3c739a0c85933a3e4f293628
Showing with 15 additions and 18 deletions.
  1. +4 −12 .travis.yml
  2. +1 −1 opentimelineio_contrib/adapters/tests/test_burnins.py
  3. +10 −5 tox.ini
@@ -4,27 +4,19 @@ python:
- "3.5"
- "3.6"
env:
global:
- PYAAF27=PyAAF-1.0.0-cp27-cp27mu-manylinux1_x86_64.whl
- PYAAF35=PyAAF-1.0.0-cp35-cp35m-manylinux1_x86_64.whl
- PYAAF36=PyAAF-1.0.0-cp36-cp36m-manylinux1_x86_64.whl
before_install:
# Note that pyaaf is only needed for the AAF adapter
# We need to get a wheel that matches our Python version
- if [[ $TRAVIS_PYTHON_VERSION == 2.7 ]]; then export PYAAF=$PYAAF27 ; fi
- if [[ $TRAVIS_PYTHON_VERSION == 3.5 ]]; then export PYAAF=$PYAAF35 ; fi
- if [[ $TRAVIS_PYTHON_VERSION == 3.6 ]]; then export PYAAF=$PYAAF36 ; fi
- wget -qO /tmp/${PYAAF} "https://github.com/markreidvfx/pyaaf/releases/download/v1.0.0/${PYAAF}"
- if [[ $TRAVIS_PYTHON_VERSION == 2.7 ]]; then export TOX_ENV=py27 ; fi
- if [[ $TRAVIS_PYTHON_VERSION == 3.5 ]]; then export TOX_ENV=py35 ; fi
- if [[ $TRAVIS_PYTHON_VERSION == 3.6 ]]; then export TOX_ENV=py36 ; fi
install:
# tox-travis installs tox and also makes working with travis better.
- pip install tox-travis coverage
- pip install /tmp/${PYAAF}
script:
- tox
- tox -e $TOX_ENV
after_success:
# Documentation for codecov uploader
@@ -140,7 +140,7 @@
try:
import PIL # noqa
from PIL import imaging # noqa
from PIL.Image import core as imaging # noqa
could_import_pillow = True
except (ImportError):
could_import_pillow = False
15 tox.ini
@@ -1,5 +1,5 @@
[tox]
envlist = clean,py27,py35,py36,py37,stats
envlist = clean,py27,py35,py36,stats
skip_missing_interpreters = true
[flake8]
@@ -19,13 +19,18 @@ deps =
check-manifest
flake8
Pillow
mock
; TODO: This will ONLY work on linux systems. If we could get this from PyPI,
; then the platform resolution could be handled by pip instead of here.
py27: https://github.com/markreidvfx/pyaaf/releases/download/v1.0.0/PyAAF-1.0.0-cp27-cp27mu-manylinux1_x86_64.whl
py35: https://github.com/markreidvfx/pyaaf/releases/download/v1.0.0/PyAAF-1.0.0-cp35-cp35m-manylinux1_x86_64.whl
py36: https://github.com/markreidvfx/pyaaf/releases/download/v1.0.0/PyAAF-1.0.0-cp36-cp36m-manylinux1_x86_64.whl
commands =
check-manifest --ignore tox.ini,tests*,requirements* --ignore-bad-ideas *.egg-info,*egg-info/*
flake8 opentimelineio
python -m unittest discover -s tests
python -m unittest discover -s opentimelineio_contrib/adapters/tests
coverage run -a --source=opentimelineio -m unittest discover tests
coverage run -a --source=opentimelineio_contrib/adapters -m unittest discover opentimelineio_contrib/adapters/tests
coverage run -a --source=opentimelineio -m unittest discover tests -vvv
coverage run -a --source=opentimelineio_contrib/adapters -m unittest discover opentimelineio_contrib/adapters/tests -vvv
coverage report --include=* -m
[testenv:clean]

0 comments on commit e1b4b45

Please sign in to comment.