[tox]
envlist =
    test
    build_docs
isolated_build = true

[testenv]
changedir = .tmp/{envname}
deps =
    git+https://github.com/astropy/astropy
extras =
    test

commands =
    pip freeze
    pytest --pyargs astropy.coordinates -m "not hypothesis" {posargs}
    pytest --pyargs astropy.time -m "not hypothesis" {posargs}
    pytest --pyargs astropy.utils.iers -m "not hypothesis" {posargs}

[testenv:build_docs]
changedir = docs
description = invoke sphinx-build to build the HTML docs
extras = docs
commands =
    pip freeze
    sphinx-build -W -b html . _build/html {posargs}
