1version: 2 2jobs: 3 build: 4 docker: 5 - image: debian:stretch 6 7 steps: 8 - checkout 9 10 - run: 11 name: Install sudo 12 command: 'apt-get update && apt-get install -y sudo && rm -rf /var/lib/apt/lists/*' 13 - run: 14 name: Install GCC 15 command: 'apt-get update && apt-get install -y gcc g++' 16 - run: 17 name: Install CMake 18 command: 'apt-get update && sudo apt-get install -y cmake' 19 - run: 20 name: Create build files 21 command: 'mkdir build ; cd build ; cmake ..' 22 - run: 23 name: Versions 24 command: 'g++ --version ; uname -a' 25 - run: 26 name: Compile 27 command: 'cmake --build build' 28 - run: 29 name: Execute test suite 30 command: 'cd build ; ctest -j 2' 31