version: 2
jobs:
  build:

    working_directory: ~/circleci-geogson

    docker:
      - image: circleci/openjdk:8-jdk-browsers

    steps:

      - checkout

      - restore_cache:
          key: circleci-geogson-{{ checksum "pom.xml" }}

      - run: mvn package

      - save_cache:
          paths:
            - ~/.m2
          key: circleci-geogson-{{ checksum "pom.xml" }}

      - store_test_results:
          path: target/surefire-reports

      - deploy:
          name: Release master
          command: |
            if [ "${CIRCLE_BRANCH}" == "master" ]; then
              git config user.email "sayhi@circleci.com" && git config user.name "Circle-CI" && ./build/deploy.sh
            fi

workflows:
  version: 2
  build:
    jobs:
      - build:
          context: org-global
version: 2
jobs:
  build:

    working_directory: ~/circleci-geogson

    docker:
      - image: circleci/openjdk:8-jdk-browsers

    steps:

      - checkout

      - name: Install System Dependencies
        command: apt-get update -qq && apt-get install -y bc


      - restore_cache:
          key: circleci-geogson-{{ checksum "pom.xml" }}

      - run: mvn package

      - save_cache:
          paths:
            - ~/.m2
          key: circleci-geogson-{{ checksum "pom.xml" }}

      - store_test_results:
          path: target/surefire-reports

      - deploy:
          name: Release master
          command: |
            if [ "${CIRCLE_BRANCH}" == "master" ]; then
              git config user.email "sayhi@circleci.com" && git config user.name "Circle-CI" && ./build/deploy.sh
            fi

workflows:
  version: 2
  build:
    jobs:
      - build:
          context: org-global
Add step to install bc on CircleCI
Add step to install bc on CircleCI
