version: 2
jobs:
  build:
    docker:
      - image: ubuntu:cosmic

    steps:
      - run:
          name: Installing
          command: 'apt-get update && apt-get install -y git gcc g++ cmake libboost-all-dev bison qt5-default libsdl2-dev ruby'

      - checkout
      - run:
          name: Submodules
          command: git submodule update --init --recursive
      - run:
          name: Configure
          command: |
            mkdir build
            cd build
            cmake ..

      - run:
          name: Build
          command: |
            cd build
            make

      - run:
          name: Test
          command: |
            cd build
            ctest . -L xfail || true
            ctest . -LE xfail


version: 2
jobs:
  build:
    docker:
      - image: cimg/base:2020.01

    steps:
      - run:
          name: Installing
          command: 'sudo apt-get update && sudo apt-get install -y git gcc g++ cmake libboost-all-dev bison qt5-default libsdl1.2-dev libsdl2-dev ruby'

      - checkout
      - run:
          name: Submodules
          command: git submodule update --init --recursive
      - run:
          name: Configure
          command: |
            mkdir build
            cd build
            cmake ..

      - run:
          name: Build
          command: |
            cd build
            make

      - run:
          name: Test
          command: |
            cd build
            ctest . -L xfail || true
            ctest . -LE xfail


Fix circleci build: use current image, use sudo, add libsdl1.2
Fix circleci build: use current image, use sudo, add libsdl1.2
