image: python:3.6

variables:
    QVM_URL: "http://qvm:5000"
    QUILC_URL: "tcp://quilc:5555"

before_script:
  - pip install tox

services:
  - name: rigetti/qvm
    alias: qvm
    command: ["-S"]
  - name: rigetti/quilc
    alias: quilc
    command: ["-R"]

test:
  tags:
    - github
  script:
    - echo "[Rigetti Forest]" > ~/.forest_config
    - echo "qvm_address = $QVM_URL" >> ~/.forest_config
    - echo "quilc_address = $QUILC_URL" >> ~/.forest_config
    - cat ~/.forest_config
    - tox -e py36

style:
  tags:
    - github
  script:
    - tox -e flake8

docs:
  tags:
    - github
  script:
    - apt-get update
    - apt-get install -y pandoc
    - tox -e docs

image: python:3.6

variables:
    QVM_URL: "http://qvm:5000"
    QUILC_URL: "tcp://quilc:5555"

before_script:
  - pip install tox

services:
  - name: rigetti/qvm
    alias: qvm
    command: ["-S"]
  - name: rigetti/quilc
    alias: quilc
    command: ["-R"]

test:
  tags:
    - github
  script:
    - echo "[Rigetti Forest]" > ~/.forest_config
    - echo "qvm_address = $QVM_URL" >> ~/.forest_config
    - echo "quilc_address = $QUILC_URL" >> ~/.forest_config
    - cat ~/.forest_config
    - tox -e py36

style:
  tags:
    - github
  script:
    - tox -e flake8

docs:
  tags:
    - github
  script:
    - apt-get update
    - apt-get install -y pandoc
    - pandoc --from=markdown --to=rst --output=docs/source/changes.rst CHANGELOG.md
    - tox -e docs

Add pandoc to CI for changelog rst->md conversion
Add pandoc to CI for changelog rst->md conversion
