version: 2

jobs:
  build:
    docker:
      - image: ubuntu:14.04
    steps:
      - checkout
      - run:
          name: "Pull Submodules"
          command: |
            git submodule init
            git submodule update --remote
      - run:
          name: Installing SUDO
          command: 'apt-get update && apt-get install -y sudo && rm -rf /var/lib/apt/lists/*'
      - run:
          name: Installing GCC
          command: 'apt-get update && apt-get install -y gcc g++'
      - run:
          name: Install CMAKE
          command: 'apt-get update && sudo apt-get install -y cmake'
      - run:
          name: Creating Build Files
          command: |
            mkdir cmake-build-debug
            cd cmake-build-debug
            cmake -DCMAKE_BUILD_TYPE=Debug -G "CodeBlocks - Unix Makefiles" ../
      - run:
          name: Creating Binary Files
          command: 'cmake --build ./ --target OpenNFS -- -j 4'
version: 2

jobs:
  build:
    docker:
      - image: ubuntu:14.04
    steps:
      # Ensure image has git
      - run: apt-get -qq update; apt-get -y install git
      - checkout
      - run:
          name: "Pull Submodules"
          command: |
            git submodule init
            git submodule update --remote
      - run:
          name: Installing SUDO
          command: 'apt-get update && apt-get install -y sudo && rm -rf /var/lib/apt/lists/*'
      - run:
          name: Installing GCC
          command: 'apt-get update && apt-get install -y gcc g++'
      - run:
          name: Install CMAKE
          command: 'apt-get update && sudo apt-get install -y cmake'
      - run:
          name: Creating Build Files
          command: |
            mkdir cmake-build-debug
            cd cmake-build-debug
            cmake -DCMAKE_BUILD_TYPE=Debug -G "CodeBlocks - Unix Makefiles" ../
      - run:
          name: Creating Binary Files
          command: 'cmake --build ./ --target OpenNFS -- -j 4'
Add git to CircleCI image
Add git to CircleCI image
