1version: 2 2jobs: 3 build_stable: 4 docker: 5 - image: debian:stretch 6 7 steps: 8 - checkout 9 10 - run: 11 name: Install required tools 12 command: 'apt-get update && apt-get install -y gcc g++ git cmake' 13 - run: 14 name: Run CMake 15 command: 'mkdir build ; cd build ; cmake .. -DJSON_BuildTests=On' 16 - run: 17 name: Compile 18 command: 'cmake --build build' 19 - run: 20 name: Execute test suite 21 command: 'cd build ; ctest --output-on-failure -j 2' 22 23 build_bleeding_edge: 24 docker: 25 - image: archlinux 26 27 steps: 28 - checkout 29 30 - run: 31 name: Install required tools 32 command: 'pacman -Sy --noconfirm base base-devel gcc git cmake' 33 - run: 34 name: Run CMake 35 command: 'mkdir build ; cd build ; cmake .. -DJSON_BuildTests=On' 36 - run: 37 name: Compile 38 command: 'cmake --build build' 39 - run: 40 name: Execute test suite 41 command: 'cd build ; ctest --output-on-failure -j 2' 42 43workflows: 44 version: 2 45 build_and_test_all: 46 jobs: 47 - build_stable 48 - build_bleeding_edge 49