# XBlock 1.0.0+ supports Python 3, but the XBlock SDK / Workbench does not (yet).
#
# Until that is fixed, run tests on Python 3.5 but ignore errors.
[tox]
envlist = py{27,35}-xblock{100,111},flake8

[travis]
python =
  2.7: py27-xblock{100,111},flake8
  3.5: py35-xblock{100,111},flake8

[flake8]
ignore = E124
exclude = .svn,CVS,.bzr,.hg,.git,__pycache__,.tox,build,dist,src

[testenv]
deps =
    -rrequirements/test.txt
    xblock100: XBlock==1.0.0
    xblock111: XBlock==1.1.1
commands =
    py27: python run_tests.py []
    py35: - python run_tests.py []
# When Workbench Python 3 support is fixed, replace with:
# commands =
#     python run_tests.py []

[testenv:flake8]
deps =
    -rrequirements/flake8.txt
commands = flake8

# XBlock 1.0.0+ supports Python 3, but the XBlock SDK / Workbench does not (yet).
#
# Until that is fixed, run tests on Python 3.5 but ignore errors.
[tox]
envlist = py{27,35}-xblock{10,11,12},flake8

[travis]
python =
  2.7: py27-xblock{10,11,12},flake8
  3.5: py35-xblock{10,11,12},flake8

[flake8]
ignore = E124
exclude = .svn,CVS,.bzr,.hg,.git,__pycache__,.tox,build,dist,src

[testenv]
deps =
    -rrequirements/test.txt
    xblock10: XBlock==1.0.0
    xblock11: XBlock==1.1.1
    xblock12: XBlock==1.2.1
commands =
    py27: python run_tests.py []
    py35: - python run_tests.py []
# When Workbench Python 3 support is fixed, replace with:
# commands =
#     python run_tests.py []

[testenv:flake8]
deps =
    -rrequirements/flake8.txt
commands = flake8

Add XBlock 1.2 to test matrix
Add XBlock 1.2 to test matrix

XBlock 1.2.0 was released on 2018-03-29, XBlock 1.2.1 on 2018-06-26.

Since it doesn't make a whole lot of sense to test on outdated
point releases, add just XBlock 1.2.1 to the test matrix. Also,
rename the other environments xblock-10, 11, and 12 to simplify
future updates.

Reference:
https://pypi.org/project/XBlock/#history
