steps:

- checkout: self
  fetchDepth: 50
  submodules: true

- task: CMake@1
  inputs:
    cmakeArgs: .. -DCLI12_SINGLE_FILE=ON -DCLI11_CXX_STD=14 -DCLI11_SINGLE_FILE_TESTS=ON -DCMAKE_BUILD_TYPE=Debug
  displayName: 'Configure'

- script: cmake --build . -j
  displayName: 'Build'
  workingDirectory: build

- script: ctest --output-on-failure -C Debug
  displayName: 'Test'
  workingDirectory: build
