test:clang10-mpi-release:
  image: localhost:5000/ubuntu_clang10_mpi
  stage: test
  needs: []
  script:
    - mkdir -p build/clang10-release-mpi
    - cd build/clang10-release-mpi
    - CXX=clang++-10 CC=clang-10 cmake ../.. -DCMAKE_BUILD_TYPE=Release -DCLANG_FORMAT=/usr/bin/clang-format-10
    - make
    - make check
  cache:
    key: "${CI_COMMIT_REF_SLUG}-clang10-release-mpi"
    paths:
      - build/clang10-release-mpi
    untracked: true
