version: 2
jobs:
  build:
    docker:
    - image: buildpack-deps:trusty
    steps:
    - checkout
    - run: apt-get update && apt-get install -y g++ cmake git libgmp-dev libcgal-dev
    - run: ./init.sh
    - run: ./make_release.sh
    - run: ( cd unittest && ./make_release.sh )
    - run: mkdir $CIRCLE_TEST_REPORTS/cmocka
    - run: ./bin/unittest --xml | tee $CIRCLE_TEST_REPORTS/cmocka/results.xml
workflows:
  version: 2
  workflow:
    jobs:
    - build

version: 2
jobs:
  build:
    docker:
    - image: buildpack-deps:trusty
    steps:
    - checkout
    - run:
      name: Install build dependencies
      command: apt-get update && apt-get install -y g++ cmake git libgmp-dev libcgal-dev
    - run:
      name: Build and install dependencies
      command: ./init.sh
    - run:
      name: Make
      command: ./make_release.sh
    - run:
      name: Make unit tests
      command: ( cd unittest && ./make_release.sh )
    - run:
      name: Create test-results directory
      command: mkdir -u bin/test-results/unittest
    - run:
      name: Run unit tests
      command: ./bin/unittest --xml | tee bin/test-results/unittest/results.xml
    - store_test_results:
      path: bin/test-results
workflows:
  version: 2
  workflow:
    jobs:
    - build

Store test results for unit tests
Store test results for unit tests
