language: python

env:
    - PHASE="test"
    - PHASE="syntax"
    - PHASE="docs"

build:
    ci:
    - pip install git+ssh://git@github.com/RedHatInsights/insights-archive.git#master
    - pip install -e .[develop]
    - mkdir -p shippable/testresults shippable/codecoverage
    - if [ $PHASE == "test" ]; then py.test --cov=insights --cov-report=xml --junit-xml=shippable/testresults/results.xml; fi
    - if [ $PHASE == "test" ]; then mv coverage.xml shippable/codecoverage; fi
    - if [ $PHASE == "syntax" ]; then flake8; fi
    - if [ $PHASE == "docs" ]; then sphinx-build -W -b html -qa -E docs docs/_build/html; fi

language: python

env:
    - PHASE="test"
    - PHASE="syntax"
    - PHASE="docs"

build:
    ci:
    - pip install -e .
    - pip install git+ssh://git@github.com/RedHatInsights/insights-archive.git#master
    - pip install -e .[develop]
    - mkdir -p shippable/testresults shippable/codecoverage
    - if [ $PHASE == "test" ]; then py.test --cov=insights --cov-report=xml --junit-xml=shippable/testresults/results.xml; fi
    - if [ $PHASE == "test" ]; then mv coverage.xml shippable/codecoverage; fi
    - if [ $PHASE == "syntax" ]; then flake8; fi
    - if [ $PHASE == "docs" ]; then sphinx-build -W -b html -qa -E docs docs/_build/html; fi

Install runtime before archive tool
Install runtime before archive tool

This is annoying, but we have to install this package (with its runtime
deps) before the archive tool because it depends on insights-core.  Then
install the development deps, which depend on the archive tool.
