config.yml 615 B

123456789101112131415161718192021222324
  1. version: 2
  2. jobs:
  3. build:
  4. docker:
  5. - image: debian:stretch
  6. steps:
  7. - checkout
  8. - run:
  9. name: Install required tools
  10. command: 'apt-get update && apt-get install -y gcc g++ git cmake'
  11. - run:
  12. name: Show versions
  13. command: 'g++ --version ; uname -a; cmake --version'
  14. - run:
  15. name: Run CMake
  16. command: 'mkdir build ; cd build ; cmake ..'
  17. - run:
  18. name: Compile
  19. command: 'cmake --build build'
  20. - run:
  21. name: Execute test suite
  22. command: 'cd build ; ctest --output-on-failure -j 2'