version: 2


jobs:
  build:
    working_directory: ~/maelstrom
    docker:
      - image: ubuntu:16.04
    steps:
      - setup_remote_docker:
          reusable: true
      - checkout
      - run: apt-get update
      - run: apt-get install -y software-properties-common
      - run: add-apt-repository -s -y ppa:fenics-packages/fenics
      - run: apt-get update
      - run: apt-get install -y python-dolfin
      - run: apt-get install -y python-numpy
      - run: apt-get install -y python-pip
      - run: pip install matplotlib pytest pytest-cov
      # The actual test
      - run: MPLBACKEND=Agg pytest --cov maelstrom
      # submit to codecov
      - run: apt-get install -y curl
      - run: bash <(curl -s https://codecov.io/bash)

version: 2


jobs:
  build:
    working_directory: ~/maelstrom
    docker:
      - image: ubuntu:16.04
    steps:
      - setup_remote_docker:
          reusable: true
      - checkout
      - run: apt-get update
      - run: apt-get install -y software-properties-common
      - run: add-apt-repository -s -y ppa:fenics-packages/fenics
      - run: apt-get update
      - run: apt-get install -y python-dolfin
      - run: apt-get install -y python-numpy
      - run: apt-get install -y python-pip
      - run: pip install matplotlib pytest pytest-cov
      # The actual test
      - run: PYTHONPATH=$PWD:$PYTHONPATH MPLBACKEND=Agg pytest --cov maelstrom
      # submit to codecov
      - run: apt-get install -y curl
      - run: bash <(curl -s https://codecov.io/bash)

Revert "circleci: try and remove the PYTHONPATH setting"
Revert "circleci: try and remove the PYTHONPATH setting"

This reverts commit 088d134db106dd393ae2b11640d6eadc142686c8.
