version: 2
executorType: machine
jobs:
  build:
    environment:
      # Customize the JVM maximum heap limit
      JVM_OPTS: -Xmx2048m

    steps:
    # Download docker images
    - checkout

    # Download and cache dependencies
    - restore_cache:
        keys:
        - v1-dependencies-{{ checksum "build.sbt" }}
        # fallback to using the latest cache if no exact match is found
        - v1-dependencies-
    # Install bats & nmap's ncat
    - run: sudo rm -rf /var/lib/apt/lists/*
    - run: sudo apt-get update > /dev/null
    - run: sudo apt-get install -qq bats gawk protobuf-compiler nmap

    # Run logic
    - run: bats core/src/test/bash
    - run: chmod -R +x scripts/*
    - run: sbt -batch -mem 2048 clean
    - run: sbt -batch -mem 2048 scalastyle
    - run: sbt -batch -mem 2048 compile
    - run: sbt -batch -mem 2048 ";coverage;test;coverageReport;coverageAggregate"

    # Send report to codecov
    - run: bash <(curl -s https://codecov.io/bash)

    # Save download & cache dependencies
    - save_cache:
        paths:
        - ~/.m2
        key: v1-dependencies--{{ checksum "build.sbt" }}
version: 2
executorType: machine
jobs:
  build:
    machine:
      image: 'cimg/base:stable'
    steps:
    # Download docker images
    - checkout

    # Download and cache dependencies
    - restore_cache:
        keys:
        - v1-dependencies-{{ checksum "build.sbt" }}

    # Install bats & nmap's ncat
    - run: sudo rm -rf /var/lib/apt/lists/*
    - run: sudo apt-get update > /dev/null
    - run: sudo apt-get install -qq bats gawk protobuf-compiler nmap

    # Run logic
    - run: bats core/src/test/bash
    - run: chmod -R +x scripts/*
    - run: sbt -batch -mem 2048 clean
    - run: sbt -batch -mem 2048 scalastyle
    - run: sbt -batch -mem 2048 compile
    - run: sbt -batch -mem 2048 ";coverage;test;coverageReport;coverageAggregate"

    # Send report to codecov
    - run: bash <(curl -s https://codecov.io/bash)

    # Save download & cache dependencies
    - save_cache:
        paths:
        - ~/.m2
        key: v1-dependencies-{{ checksum "build.sbt" }}
Correct circle-ci using base image
[Fixed] Correct circle-ci using base image

Signed-off-by: amannocci <460865f536eadefb7a9a9ce677e40da609b12400@gmail.com>
