version: 2
jobs:
  build:
    docker:
        - image: circleci/python:stretch-browsers
    steps:
      - checkout
      - run:
          name: Installation
          command: |
              sudo apt-get update
              sudo apt-get install -y cmake python-pytest bison valgrind xsltproc
      - run:
          name: Build
          command: |
              mkdir bld
              cd bld
              cmake ..
              make
      - run:
          name: Test
          command: |
              cd bld
              ctest --no-compress-stdout -T Test || true
              mkdir -p Testing/test-reports/c
              mkdir -p Testing/test-reports/python
              mv Testing/*.xml Testing/test-reports/python
              xsltproc ../resource/ctest-to-junit.xsl Testing/*/*.xml > Testing/test-reports-c/c.xml
      - store_test_results:
          path: bld/Testing/test-reports

      - store_artifacts:
          path: bld/Testing/test-reports
          destination: test-reports

version: 2
jobs:
  build:
    docker:
        - image: circleci/python:stretch-browsers
    steps:
      - checkout
      - run:
          name: Installation
          command: |
              sudo apt-get update
              sudo apt-get install -y cmake python-pytest bison valgrind xsltproc
      - run:
          name: Build
          command: |
              mkdir bld
              cd bld
              cmake ..
              make
      - run:
          name: Test
          command: |
              cd bld
              ctest --no-compress-stdout -T Test || true
              mkdir -p Testing/test-reports/c
              mkdir -p Testing/test-reports/python
              mv Testing/*.xml Testing/test-reports/python
              xsltproc ../resource/ctest-to-junit.xsl Testing/*/*.xml > Testing/test-reports/c.xml
      - store_test_results:
          path: bld/Testing/test-reports

      - store_artifacts:
          path: bld/Testing/test-reports
          destination: test-reports

Convert ctest to junit xml.
Convert ctest to junit xml.

Fixes #48.
