env:
  global:
    - secure: "W3PaYhPnJFCaG6TW5Xc0wtggdEqcreTQcHThmIo5Eqs/jUL2toiUiv3ZWlhzR3tkphLvt2KeaQe83BR6RTifYjSmnmAePj0Gw5res1AXzN95OsKEk3nMiTZbVP+PuTTbQZJga8B31nRUBiAMQ6FsNlpGq7E8sp9N65lnR3mGHAE="
    - PIP_DOC_DEPENDENCIES="six sphinx sphinx_bootstrap_theme jsonschema pyyaml mistune"
    - ASDF_MASTER="git+git://github.com/spacetelescope/asdf"

sudo: false

addons:
  apt:
    packages:
      - graphviz

language: python

python:
  - 3.6

branches:
  only:
    - master

jobs:
  include:
    # Build documentation
    - before_install:
        - pip install $PIP_DOC_DEPENDENCIES
      install: python setup.py
      script: make html

    # Run schema validation and example tests using pytest
    - before_install:
        - pip install $ASDF_MASTER pytest
      install: echo Nothing to install
      script: pytest

env:
  global:
    - secure: "W3PaYhPnJFCaG6TW5Xc0wtggdEqcreTQcHThmIo5Eqs/jUL2toiUiv3ZWlhzR3tkphLvt2KeaQe83BR6RTifYjSmnmAePj0Gw5res1AXzN95OsKEk3nMiTZbVP+PuTTbQZJga8B31nRUBiAMQ6FsNlpGq7E8sp9N65lnR3mGHAE="
    - PIP_DOC_DEPENDENCIES="six sphinx sphinx_bootstrap_theme jsonschema pyyaml mistune"
    - ASDF_MASTER="git+git://github.com/spacetelescope/asdf"

sudo: false

addons:
  apt:
    packages:
      - graphviz

language: python

python:
  - 3.6

branches:
  only:
    - master

jobs:
  include:
    # Build documentation
    - before_install:
        - pip install $PIP_DOC_DEPENDENCIES
      install: python setup.py
      script: make html

    # Run schema validation and example tests using pytest
    - before_install:
        - pip install $ASDF_MASTER pytest
        # We need to install these packages because they contain the canonical
        # implementations for some of the schemas we need to test
        - pip install astropy gwcs
      install: echo Nothing to install
      script: pytest

Install astropy and gwcs when running schema tests...
Install astropy and gwcs when running schema tests...

Since these packages contain the ASDF extensions that are used to run
some of the types that implement our schemas.
